diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-04-03 17:12:42 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-07 09:18:18 +0200 |
commit | ec864627585f7ea383252c50d726754fb51dd56f (patch) | |
tree | c09ed85a38d579f5943b183dacc9b60df004baf3 /sc | |
parent | 026004e052c56a632e934c8eeac28cfec260f41a (diff) |
sc tiled editing: This correction is not needed, pass the exact values.
Change-Id: Ie73569bf3faefdc9aa6a309423d8048a49dda272
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 92dc6e16633b..8e4c6566d0f1 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -685,13 +685,13 @@ void ScModelObj::setGraphicSelection(int nType, int nX, int nY) { MouseEvent aClickEvent(Point(nPixelX, nPixelY), 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT); pGridWindow->MouseButtonDown(aClickEvent); - MouseEvent aMoveEvent(Point(nPixelX + 1, nPixelY), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT); + MouseEvent aMoveEvent(Point(nPixelX, nPixelY), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT); pGridWindow->MouseMove(aMoveEvent); } break; case LOK_SETGRAPHICSELECTION_END: { - MouseEvent aMoveEvent(Point(nPixelX - 1, nPixelY), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT); + MouseEvent aMoveEvent(Point(nPixelX, nPixelY), 0, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT); pGridWindow->MouseMove(aMoveEvent); MouseEvent aClickEvent(Point(nPixelX, nPixelY), 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT); pGridWindow->MouseButtonUp(aClickEvent); |