[Libreoffice-commits] core.git: sc/source
scito (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 23 12:25:26 UTC 2021
sc/source/ui/view/cellsh.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c7f64973c0ac985c9506f660d93d0762d898f3bc
Author: scito <info at scito.ch>
AuthorDate: Sun Apr 11 21:39:09 2021 +0200
Commit: Mike Kaganski <mike.kaganski at 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.kaganski at 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));
More information about the Libreoffice-commits
mailing list