Spreadsheet: show comma separators in number of rows

This commit is contained in:
Jacques Lucke 2021-03-23 10:40:54 +01:00
parent 1dea9701e6
commit 028ca67a8d
1 changed files with 6 additions and 2 deletions

View File

@ -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);