[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sc/source

Dennis Francis (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 14 05:38:17 UTC 2021


 sc/source/ui/docshell/dbdocfun.cxx |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 7ef5fcc08f6678ad6a61c46b187e1920fca74d23
Author:     Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Tue Jan 12 11:20:34 2021 +0530
Commit:     Dennis Francis <dennis.francis at collabora.com>
CommitDate: Thu Jan 14 06:37:46 2021 +0100

    lok: sort: invalidate the row-height cache too
    
    Change-Id: I13e59dc045b23a6ea60cd4cf34dda3166dbf5aad
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109208
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 810a70883779..cc6bfd16a856 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -594,6 +594,17 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam,
     if (comphelper::LibreOfficeKit::isActive())
     {
         SfxViewShell* pSomeViewForThisDoc = rDocShell.GetBestViewShell(false);
+        SfxViewShell* pViewShell = SfxViewShell::GetFirst();
+        while (pViewShell)
+        {
+            ScTabViewShell* pTabViewShell = dynamic_cast<ScTabViewShell*>(pViewShell);
+            if (pTabViewShell && pTabViewShell->GetDocId() == pSomeViewForThisDoc->GetDocId())
+            {
+                pTabViewShell->GetViewData().GetLOKHeightHelper(nTab)->invalidateByIndex(nStartRow);
+            }
+            pViewShell = SfxViewShell::GetNext(*pViewShell);
+        }
+
         ScTabViewShell::notifyAllViewsSheetGeomInvalidation(
             pSomeViewForThisDoc, false /* bColumns */, true /* bRows */, true /* bSizes*/,
             true /* bHidden */, true /* bFiltered */, true /* bGroups */, nTab);


More information about the Libreoffice-commits mailing list