summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2020-07-16 13:55:26 +0530
committerDennis Francis <dennis.francis@collabora.com>2020-07-17 06:12:55 +0200
commit681ef79921e2686080db8299b7891c9add6eaa1e (patch)
tree332f90da556f1e915b457486549b87f68660a38d /sc
parent7d8964b35a438f08c40c552a3d19fa2c300d24f1 (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> (cherry picked from commit 2661685f4d73dac2997cc91a92f3e133b3518131) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98950 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/undo/undocell.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 5b831552b5b1..6de4ed477e2b 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>
@@ -179,12 +180,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);
}