lokCalcRTL: shapes: negate mouse-event x coordinate

Conflicts:
	svx/source/svdraw/svdview.cxx

Change-Id: I153334940b41859e6fd9dee64217925627f0f292
(cherry picked from commit bb37b46182bcff2f10edcc590cedbc4bb5820c4b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129359
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
This commit is contained in:
Dennis Francis
2022-02-04 07:33:46 +01:00
parent 9f7e6d10d8
commit 0a95b424c8
+8
View File
@@ -265,6 +265,14 @@ SdrHitKind SdrView::PickAnything(const MouseEvent& rMEvt, SdrMouseEventKind nEve
}
Point aPnt(rMEvt.GetPosPixel());
if (pOut!=nullptr) aPnt=pOut->PixelToLogic(aPnt);
if (mbNegativeX)
{
// Shape's x coordinates are all negated,
// Hence negate mouse event's x coord to match.
aPnt.setX(-aPnt.X());
}
rVEvt.maLogicPos = aPnt;
return PickAnything(aPnt,rVEvt);
}