diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2021-12-06 13:55:43 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2022-02-04 07:33:46 +0100 |
commit | 0a95b424c8fd4eb58b439828120ba631048be32f (patch) | |
tree | 4d1f0454daaa24c6470c83904cba9451269687e4 /svx/source/svdraw/svdview.cxx | |
parent | 9f7e6d10d863bb206ba3d671e34d2f019e2d2480 (diff) |
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>
Diffstat (limited to 'svx/source/svdraw/svdview.cxx')
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 52391d0a0b57..d66094def531 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -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); } |