diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2020-07-16 13:55:26 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2020-07-16 23:07:08 +0200 |
commit | 2661685f4d73dac2997cc91a92f3e133b3518131 (patch) | |
tree | bc4616e07d9d2954802924e308cace1e1f55038e /sc | |
parent | f9cb1968433121a4ef4953f198f645a56a3d786a (diff) |
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@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
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); } |