[Libreoffice-commits] core.git: sc/source

Dennis Francis (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 16 21:07:48 UTC 2020


 sc/source/ui/undo/undocell.cxx |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 2661685f4d73dac2997cc91a92f3e133b3518131
Author:     Dennis Francis <dennis.francis at collabora.com>
AuthorDate: Thu Jul 16 13:55:26 2020 +0530
Commit:     Dennis Francis <dennis.francis at collabora.com>
CommitDate: Thu Jul 16 23:07:08 2020 +0200

    lokit: add missing header and row-size invalidation calls...
    
    for ScUndoEnterData if there is a change in row height(s).
    
    Change-Id: I7d1e3a3ad8d55dcdb0cfbbc94521b83a7ac2b1ff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98891
    Tested-by: Jenkins
    Reviewed-by: Dennis Francis <dennis.francis at collabora.com>

diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 964ad6732f1d..345e85ac4a7d 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -22,6 +22,7 @@
 #include <scitems.hxx>
 #include <editeng/editobj.hxx>
 #include <sfx2/app.hxx>
+#include <comphelper/lok.hxx>
 
 #include <document.hxx>
 #include <docpool.hxx>
@@ -177,12 +178,23 @@ OUString ScUndoEnterData::GetComment() const
 void ScUndoEnterData::DoChange() const
 {
     // only when needed (old or new Edit cell, or Attribute)?
+    bool bHeightChanged = false;
     for (const auto & i : maOldValues)
-        pDocShell->AdjustRowHeight(maPos.Row(), maPos.Row(), i.mnTab);
+    {
+        if (pDocShell->AdjustRowHeight(maPos.Row(), maPos.Row(), i.mnTab))
+            bHeightChanged = true;
+    }
 
     ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
     if (pViewShell)
     {
+        if (comphelper::LibreOfficeKit::isActive() && bHeightChanged)
+        {
+            ScTabViewShell::notifyAllViewsHeaderInvalidation(pViewShell, ROW_HEADER, maPos.Tab());
+            ScTabViewShell::notifyAllViewsSheetGeomInvalidation(
+                pViewShell, false /* bColumns */, true /* bRows */, true /* bSizes*/,
+                false /* bHidden */, false /* bFiltered */, false /* bGroups */, maPos.Tab());
+        }
         pViewShell->SetTabNo(maPos.Tab());
         pViewShell->MoveCursorAbs(maPos.Col(), maPos.Row(), SC_FOLLOW_JUMP, false, false);
     }


More information about the Libreoffice-commits mailing list