summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2021-10-18 12:09:07 +0530
committerDennis Francis <dennis.francis@collabora.com>2021-10-22 13:51:15 +0200
commit9436f7e2ffb41c278107aa4e6fd6914937994cbd (patch)
tree902c1efcc04c76c66badc5c77173f6a5197a7d98 /sc
parent8de04f459611df936c0b315b6d48cb3dbcc1d5fa (diff)
lok: invalidate sheet-geometry sizes on clip paste
Change-Id: Ie2b308f970673381dfa354620e3394acb44f971f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123869 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit a547f8a1db3c39ad2c84a6bc11cec075ad52c268) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124011 Tested-by: Jenkins Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfun3.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index 32d934c92c29..5397d2dec352 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -21,6 +21,7 @@
#include <svx/svdpage.hxx>
#include <sfx2/docfile.hxx>
#include <comphelper/classids.hxx>
+#include <comphelper/lok.hxx>
#include <sot/formats.hxx>
#include <sot/storage.hxx>
#include <vcl/graph.hxx>
@@ -749,7 +750,15 @@ bool ScViewFunc::PasteFromSystem( SotClipboardFormatId nFormatId, bool bApi )
nullptr, false, !bApi ); // allow warning dialog
if ( !bRet && !bApi )
+ {
ErrorMessage(STR_PASTE_ERROR);
+ }
+ else if (comphelper::LibreOfficeKit::isActive())
+ {
+ SfxViewShell* pViewShell = rViewData.GetViewShell();
+ ScTabViewShell::notifyAllViewsSheetGeomInvalidation(pViewShell, true /* bColumns */, true /* bRows */,
+ true /* bSizes */, false /* bHidden */, false /* bFiltered */, false /* bGroups */, rViewData.GetTabNo());
+ }
}
return bRet;
}