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>
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 65640e0..99478b3 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));