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

New commits:
commit fa95e0e290608ef58a3cf79f8e3773927677de33
Author:     Dennis Francis <[email protected]>
AuthorDate: Tue Jan 12 11:20:34 2021 +0530
Commit:     Dennis Francis <[email protected]>
CommitDate: Sat Jan 16 13:43:53 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 <[email protected]>
    Reviewed-by: Jan Holesovsky <[email protected]>
    (cherry picked from commit 7ef5fcc08f6678ad6a61c46b187e1920fca74d23)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109275
    Tested-by: Jenkins
    Reviewed-by: Dennis Francis <[email protected]>

diff --git a/sc/source/ui/docshell/dbdocfun.cxx 
b/sc/source/ui/docshell/dbdocfun.cxx
index 6dbb7f38c71a..6b10b53beb8f 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -592,6 +592,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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to