summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-02 14:47:26 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 09:18:14 +0200
commitc768fc150b62b1b1cd85f23efb5b5e964c89290b (patch)
tree9068ad963744ad3bb8e70d545816637165c255e9 /sd
parent1a76acd1af256c340d3a9488ab5a4afbb86edc9e (diff)
sd::ViewShell::SetGraphicMm100Position: can avoid FuPoor::DRGLOG here
Change-Id: I6d006b21091cce8576693f4ee974906fecfe3d38
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/viewshel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 2f5ebf1c485d..4016503e16d4 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -554,12 +554,12 @@ void ViewShell::SetGraphicMm100Position(bool bStart, const Point& rPosition)
{
MouseEvent aClickEvent(rPosition, 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT);
MouseButtonDown(aClickEvent, 0);
- MouseEvent aMoveEvent(Point(rPosition.getX() + FuPoor::DRGLOG + 1, rPosition.getY()), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT);
+ MouseEvent aMoveEvent(Point(rPosition.getX(), rPosition.getY()), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT);
MouseMove(aMoveEvent, 0);
}
else
{
- MouseEvent aMoveEvent(Point(rPosition.getX() - FuPoor::DRGLOG - 1, rPosition.getY()), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT);
+ MouseEvent aMoveEvent(Point(rPosition.getX(), rPosition.getY()), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT);
MouseMove(aMoveEvent, 0);
MouseEvent aClickEvent(rPosition, 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT);
MouseButtonUp(aClickEvent, 0);