[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - svx/source

mert (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 24 07:37:46 UTC 2021


 svx/source/svdraw/svdoedge.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 4f12603d84b46eaae30a67274983d3a49ecc2ece
Author:     mert <mert.tumer at collabora.com>
AuthorDate: Wed Feb 17 09:12:25 2021 +0300
Commit:     Mert Tumer <mert.tumer at collabora.com>
CommitDate: Wed Feb 24 08:37:11 2021 +0100

    Fix connectors cannot select a glue point
    
    Change-Id: I6b6d2dad27910ac6d5de43e9d0992e3565f5be5e
    Signed-off-by: mert <mert.tumer at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111024

diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index 8b84492dd48f..5946ecadc4c4 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -49,6 +49,7 @@
 #include <svx/xpoly.hxx>
 #include <svx/xpool.hxx>
 #include <vcl/ptrstyle.hxx>
+#include <comphelper/lok.hxx>
 
 void SdrObjConnection::ResetVars()
 {
@@ -2139,7 +2140,10 @@ bool SdrEdgeObj::ImpFindConnector(const Point& rPt, const SdrPageView& rPV, SdrO
     // sensitive area of connectors is twice as large as the one of the handles
     sal_uInt16 nMarkHdSiz=rPV.GetView().GetMarkHdlSizePixel();
     Size aHalfConSiz(nMarkHdSiz,nMarkHdSiz);
-    aHalfConSiz=pOut->PixelToLogic(aHalfConSiz);
+    if (comphelper::LibreOfficeKit::isActive())
+        aHalfConSiz=pOut->PixelToLogic(aHalfConSiz, MapMode(MapUnit::Map100thMM));
+    else
+        aHalfConSiz=pOut->PixelToLogic(aHalfConSiz);
     tools::Rectangle aMouseRect(rPt,rPt);
     aMouseRect.AdjustLeft( -(aHalfConSiz.Width()) );
     aMouseRect.AdjustTop( -(aHalfConSiz.Height()) );


More information about the Libreoffice-commits mailing list