diff options
author | Jacques Lucke <jacques@blender.org> | 2022-07-26 13:35:55 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-07-26 13:36:44 +0300 |
commit | c5712c6795e761c16666aeeb611be05990d3f734 (patch) | |
tree | 7aa5472b4a1c71790b4c4bd6dcbd5ffe1130b8f9 | |
parent | b08c5381ac7f230057d2e1b559911dff55df0670 (diff) |
Fix T99373: add some padding in spreadsheet vector columns
This improves readability in some cases (e.g. in T99373).
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_layout.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc index 780dd0303cd..3fe4c7c8ee0 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc @@ -287,7 +287,7 @@ class SpreadsheetLayoutDrawer : public SpreadsheetDrawer { for (const int i : values.index_range()) { std::stringstream ss; const float value = values[i]; - ss << std::fixed << std::setprecision(3) << value; + ss << " " << std::fixed << std::setprecision(3) << value; const std::string value_str = ss.str(); uiBut *but = uiDefIconTextBut(params.block, UI_BTYPE_LABEL, @@ -318,7 +318,7 @@ class SpreadsheetLayoutDrawer : public SpreadsheetDrawer { for (const int i : values.index_range()) { std::stringstream ss; const float value = values[i]; - ss << std::fixed << std::setprecision(3) << value; + ss << " " << std::fixed << std::setprecision(3) << value; const std::string value_str = ss.str(); uiBut *but = uiDefIconTextBut(params.block, UI_BTYPE_LABEL, |