[Libreoffice-commits] core.git: sc/source
Dennis Francis (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 14 09:49:50 UTC 2021
sc/source/ui/docshell/dbdocfun.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit e16b704db9ca28a8a9a88a7bd9aaec46a18d0b25
Author: Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Tue Jan 12 11:05:56 2021 +0530
Commit: Dennis Francis <dennis.francis at collabora.com>
CommitDate: Thu Jan 14 10:49:09 2021 +0100
lok: send sheetGeometry invalidation after sort
...just for the rows to let the client know the row sizes/spans have
changed.
Change-Id: I26f985ab0ba4eb5b21db5783a8ac3957c64c2f22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109207
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
(cherry picked from commit cca01519c7e778d3cf9208e642073d939d9fdac0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109272
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis at collabora.com>
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 5da81c91acce..6dbb7f38c71a 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -25,6 +25,7 @@
#include <svx/svdoole2.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <unotools/charclass.hxx>
+#include <comphelper/lok.hxx>
#include <dbdocfun.hxx>
#include <dbdata.hxx>
@@ -588,6 +589,14 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam,
if (pDBData == rDoc.GetAnonymousDBData( nTab) || rDoc.GetDBCollection()->getAnonDBs().has( pDBData))
pDBData->UpdateFromSortParam( rSortParam);
+ if (comphelper::LibreOfficeKit::isActive())
+ {
+ SfxViewShell* pSomeViewForThisDoc = rDocShell.GetBestViewShell(false);
+ ScTabViewShell::notifyAllViewsSheetGeomInvalidation(
+ pSomeViewForThisDoc, false /* bColumns */, true /* bRows */, true /* bSizes*/,
+ true /* bHidden */, true /* bFiltered */, true /* bGroups */, nTab);
+ }
+
if (nStartRow <= aLocalParam.nRow2)
{
ScRange aDirtyRange(
More information about the Libreoffice-commits
mailing list