This patch modifies the commit 3536fe8f4cdbacf5702e743407f34d918b6f4d38 by keeping the filtered row count inside ScDBData instead of ScTable as suggested by Eike Rathke. This significantly reduced the code complexity involved.
Change-Id: I30ac26061d9665ce7a749e23a636f7fb3f69b176 Reviewed-on: https://gerrit.libreoffice.org/21720
1e619fd tdf#34873 : Better way to show autofilter count
sc/inc/dbdata.hxx | 3 ++
sc/inc/table.hxx | 11 --------
sc/source/core/data/documen3.cxx | 32 ++-------------------
sc/source/core/data/table1.cxx | 1 -
sc/source/core/data/table2.cxx | 54 ------------------------------------
sc/source/core/data/table5.cxx | 31 ---------------------
sc/source/core/tool/dbdata.cxx | 26 +++++++++++++++--
sc/source/ui/docshell/dbdocfun.cxx | 1 +
8 files changed, 29 insertions(+), 130 deletions(-)
Upstream: cgit.freedesktop.org