diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-10-18 12:09:07 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2021-10-20 11:10:51 +0200 |
commit | 29fbfbbdb070eb860080cd42e52a8710f2e90700 (patch) | |
tree | 0a627547200984fd2ff24186541758733fda9df1 /sc | |
parent | 0c1bdc5680d8a9067c8f1fa607fb56923a48dce1 (diff) |
lok: invalidate sheet-geometry sizes on clip paste
Change-Id: Ie2b308f970673381dfa354620e3394acb44f971f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123849
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun3.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx index 42395787792a..da627069252b 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> @@ -765,7 +766,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; } |