summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-31 11:40:27 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 09:18:04 +0200
commit8eeb6ef98703bf411a0ee402f647472ddeec057c (patch)
tree8082d6386725aab5d6e4c6dc96bd48e8ecfca4c7 /sd/source/ui/view
parentf8bd9687e7675641d85effe10898f829c180984a (diff)
sd::ViewShell::LogicMouseButtonUp: typo
See commit 845708fcc8e9a5a18aa7e70741008c6602f08eae (Add vcl::Window::SetLastMousePos(), 2015-02-24), what we really want is to set the remembered mouse click position, i.e. SetLastMousePos(), not SetPointerPosPixel(), which would move the mouse (and is a NOP for the headless backend). Change-Id: I126836a72ba09a92b4f70169257d7293bb5e980c
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/viewshel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 54e652648db2..2ce29b972481 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -525,7 +525,7 @@ void ViewShell::LogicMouseButtonUp(const MouseEvent& rMouseEvent)
assert(GetDoc()->isTiledRendering());
Point aPoint = mpActiveWindow->GetPointerPosPixel();
- mpActiveWindow->SetPointerPosPixel(rMouseEvent.GetPosPixel());
+ mpActiveWindow->SetLastMousePos(rMouseEvent.GetPosPixel());
MouseButtonUp(rMouseEvent, 0);