diff options
author | merttumer <mert.tumer@collabora.com> | 2021-03-11 10:33:04 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2021-04-09 07:09:50 +0200 |
commit | dedd720cf7188bb1e70f977099c5cee76e83541d (patch) | |
tree | 8b4e19ad036ee52eb554e2a8161583ed4c8a0a5e | |
parent | b3b231b7b44fb81efd2ee72cb08deec3997f6431 (diff) |
lok: Don't invalidate GluePoints
Change-Id: Ie579b31e6ee2067f5b88464c62c0870b68a461a2
Signed-off-by: merttumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112315
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
-rw-r--r-- | svx/source/svdraw/svdglue.cxx | 5 | ||||
-rw-r--r-- | svx/source/svdraw/svdpntv.cxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdglue.cxx b/svx/source/svdraw/svdglue.cxx index 2f9d53028988..f9a6992a0ec7 100644 --- a/svx/source/svdraw/svdglue.cxx +++ b/svx/source/svdraw/svdglue.cxx @@ -23,6 +23,7 @@ #include <svx/svdglue.hxx> #include <svx/svdobj.hxx> #include <svx/svdtrans.hxx> +#include <comphelper/lok.hxx> static const Size aGlueHalfSize(4,4); @@ -253,6 +254,8 @@ void SdrGluePoint::Shear(const Point& rRef, double tn, bool bVShear, const SdrOb void SdrGluePoint::Invalidate(vcl::Window& rWin, const SdrObject* pObj) const { + if (comphelper::LibreOfficeKit::isActive()) + return; bool bMapMode=rWin.IsMapModeEnabled(); Point aPt(pObj!=nullptr ? GetAbsolutePos(*pObj) : GetPos()); aPt=rWin.LogicToPixel(aPt); @@ -329,6 +332,8 @@ sal_uInt16 SdrGluePointList::Insert(const SdrGluePoint& rGP) void SdrGluePointList::Invalidate(vcl::Window& rWin, const SdrObject* pObj) const { + if (comphelper::LibreOfficeKit::isActive()) + return; for (auto& xGP : aList) xGP->Invalidate(rWin,pObj); } diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index ec2a3b1917c5..f4fa2e4783bc 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx @@ -823,6 +823,11 @@ bool SdrPaintView::KeyInput(const KeyEvent& /*rKEvt*/, vcl::Window* /*pWin*/) void SdrPaintView::GlueInvalidate() const { + // Do not invalidate GluePoints in Online + // They are handled on front-end + if (comphelper::LibreOfficeKit::isActive()) + return; + const sal_uInt32 nWindowCount(PaintWindowCount()); for(sal_uInt32 nWinNum(0); nWinNum < nWindowCount; nWinNum++) |