[Libreoffice-commits] core.git: Branch 'feature/tiled-editing' - sd/source
Miklos Vajna
vmiklos at collabora.co.uk
Thu Apr 2 05:48:29 PDT 2015
sd/source/ui/view/viewshel.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 013a5bef837724f660f4e63e4cbef56065d34d3a
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Thu Apr 2 14:47:26 2015 +0200
sd::ViewShell::SetGraphicMm100Position: can avoid FuPoor::DRGLOG here
Change-Id: I6d006b21091cce8576693f4ee974906fecfe3d38
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 7f46731..acc001f 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);
More information about the Libreoffice-commits
mailing list