From 028ca67a8deeb1ce99ff77f76cc62e756b9751b8 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 23 Mar 2021 10:40:54 +0100 Subject: Spreadsheet: show comma separators in number of rows --- source/blender/editors/space_spreadsheet/space_spreadsheet.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_spreadsheet') 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); -- cgit v1.2.3