diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-01-12 11:20:34 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2021-01-16 13:43:53 +0100 |
commit | fa95e0e290608ef58a3cf79f8e3773927677de33 (patch) | |
tree | b45605ffd3ae602158d5511fbdf1c64bb251e454 /sc | |
parent | 00d268422d0c1682adaf59fca6f60f35a9d5f221 (diff) |
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@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 7ef5fcc08f6678ad6a61c46b187e1920fca74d23)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109275
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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); |