diff options
author | mert <mert.tumer@collabora.com> | 2021-02-17 09:12:25 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2021-03-01 14:20:06 +0100 |
commit | dd5fe1b7602e0b772b3ddc188eb4d1fdfcd519cb (patch) | |
tree | 9a8c640c0b877cbae240a5911d5304fa29036de6 /svx | |
parent | a889bca4a1912da1e402181d8acd6ef7683e2f53 (diff) |
Fix connectors cannot select a glue point
Change-Id: I6b6d2dad27910ac6d5de43e9d0992e3565f5be5e
Signed-off-by: mert <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111024
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111511
Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 47c012c7c36e..de697372d120 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -43,6 +43,7 @@ #include <svx/sxenditm.hxx> #include <svx/xpoly.hxx> #include <vcl/ptrstyle.hxx> +#include <comphelper/lok.hxx> void SdrObjConnection::ResetVars() { @@ -2140,7 +2141,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()) ); |