Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-03-23 12:40:54 +0300
committerJacques Lucke <jacques@blender.org>2021-03-23 12:41:04 +0300
commit028ca67a8deeb1ce99ff77f76cc62e756b9751b8 (patch)
treea99f158b0f214a0fe5e52443061ab4bf2b08fca1 /source/blender/editors/space_spreadsheet/space_spreadsheet.cc
parent1dea9701e6050e6ee60e3b754afa84ab45cd5154 (diff)
Spreadsheet: show comma separators in number of rows
Diffstat (limited to 'source/blender/editors/space_spreadsheet/space_spreadsheet.cc')
-rw-r--r--source/blender/editors/space_spreadsheet/space_spreadsheet.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
index 05759c1b510..0f7709b464e 100644
--- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
+++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc
@@ -274,9 +274,13 @@ static void spreadsheet_footer_region_draw(const bContext *C, ARegion *region)
std::stringstream ss;
ss << "Rows: ";
if (runtime->visible_rows != runtime->tot_rows) {
- ss << runtime->visible_rows << " / ";
+ char visible_rows_str[16];
+ BLI_str_format_int_grouped(visible_rows_str, runtime->visible_rows);
+ ss << visible_rows_str << " / ";
}
- ss << runtime->tot_rows << " | Columns: " << runtime->tot_columns;
+ char tot_rows_str[16];
+ BLI_str_format_int_grouped(tot_rows_str, runtime->tot_rows);
+ ss << tot_rows_str << " | Columns: " << runtime->tot_columns;
std::string stats_str = ss.str();
UI_ThemeClearColor(TH_BACK);