Commit: 028ca67a8deeb1ce99ff77f76cc62e756b9751b8
Author: Jacques Lucke
Date: Tue Mar 23 10:40:54 2021 +0100
Branches: master
https://developer.blender.org/rB028ca67a8deeb1ce99ff77f76cc62e756b9751b8
Spreadsheet: show comma separators in number of rows
===================================================================
M source/blender/editors/space_spreadsheet/space_spreadsheet.cc
===================================================================
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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs