summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorscito <info@scito.ch>2021-04-11 21:39:09 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-04-23 14:24:45 +0200
commitc7f64973c0ac985c9506f660d93d0762d898f3bc (patch)
treeff08c2e205b6fdb0f4d9fcb56db1efefe9019188 /sc/source/ui
parent9eba8aa38db3a0dc2f7dfaf24a003c16418aef18 (diff)
tdf#84517 show count of non-filtered rows in sc status bar
Filtered rows do not belong to a selection and are not pasted. Change-Id: I03e1c03c42b508e24194b769a466611503ce44d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113991 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/cellsh.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 65640e0e87bf..99478b302ec9 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -767,7 +767,8 @@ void ScCellShell::GetState(SfxItemSet &rSet)
nRow2 = aMarkRange.aEnd.Row();
if( nCol2 != nCol1 || nRow1 != nRow2 )
{
- const auto nRows = nRow2 - nRow1 + 1;
+ const auto nRows
+ = rDoc.CountNonFilteredRows(nRow1, nRow2, aMarkRange.aStart.Tab());
const auto nCols = nCol2 - nCol1 + 1;
const LocaleDataWrapper& rLocaleData = Application::GetSettings().GetUILocaleDataWrapper();
OUString aRowArg = ScResId(STR_SELCOUNT_ROWARG, nRows).replaceAll("$1", rLocaleData.getNum(nRows, 0));