[Libreoffice-commits] core.git: svx/source

merttumer (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 20 02:33:48 UTC 2021


 svx/source/svdraw/svdglue.cxx |    5 +++++
 svx/source/svdraw/svdpntv.cxx |    5 +++++
 2 files changed, 10 insertions(+)

New commits:
commit 611130065625650adad4e2e2204ca5b42b9f65c0
Author:     merttumer <mert.tumer at collabora.com>
AuthorDate: Thu Mar 11 10:33:04 2021 +0300
Commit:     Mert Tumer <mert.tumer at collabora.com>
CommitDate: Tue Apr 20 04:33:16 2021 +0200

    lok: Don't invalidate GluePoints
    
    Change-Id: Ie579b31e6ee2067f5b88464c62c0870b68a461a2
    Signed-off-by: merttumer <mert.tumer at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112315
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114029
    Tested-by: Jenkins

diff --git a/svx/source/svdraw/svdglue.cxx b/svx/source/svdraw/svdglue.cxx
index 4cce1a58ad26..05a89173e5df 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>
 
 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);
@@ -324,6 +327,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 59d1a55a8888..9074036a3edc 100644
--- a/svx/source/svdraw/svdpntv.cxx
+++ b/svx/source/svdraw/svdpntv.cxx
@@ -780,6 +780,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++)


More information about the Libreoffice-commits mailing list