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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user