diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-15 18:10:23 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-15 18:11:18 +0300 |
commit | e7f59e6f94cd61a6ebc6fb7d7fcfc83c97e2b3c0 (patch) | |
tree | a6fc0326a92bde72f9df5254d1d4cce81dc700c9 /source/blender/editors/space_spreadsheet/space_spreadsheet.cc | |
parent | c82f65b096b90d80ea50be40afa826e7368d87a2 (diff) |
Spreadsheet: show number of filtered rows only when necessary
Diffstat (limited to 'source/blender/editors/space_spreadsheet/space_spreadsheet.cc')
-rw-r--r-- | source/blender/editors/space_spreadsheet/space_spreadsheet.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc index e4bb19d67bf..05759c1b510 100644 --- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc +++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc @@ -272,8 +272,11 @@ static void spreadsheet_footer_region_draw(const bContext *C, ARegion *region) SpaceSpreadsheet *sspreadsheet = CTX_wm_space_spreadsheet(C); SpaceSpreadsheet_Runtime *runtime = sspreadsheet->runtime; std::stringstream ss; - ss << "Rows: " << runtime->visible_rows << " / " << runtime->tot_rows - << " | Columns: " << runtime->tot_columns; + ss << "Rows: "; + if (runtime->visible_rows != runtime->tot_rows) { + ss << runtime->visible_rows << " / "; + } + ss << runtime->tot_rows << " | Columns: " << runtime->tot_columns; std::string stats_str = ss.str(); UI_ThemeClearColor(TH_BACK); |