sc/source/ui/view/cellsh.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c7f64973c0ac985c9506f660d93d0762d898f3bc Author: scito <i...@scito.ch> AuthorDate: Sun Apr 11 21:39:09 2021 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Apr 23 14:24:45 2021 +0200 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.kagan...@collabora.com> 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)); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits