From 2d658257f23917c5b23b28db9c22ef7e5cd0dab4 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Sun, 19 Mar 2017 21:16:04 +0100 Subject: [PATCH] added fixes for #3764 by @heckflosse --- rtgui/cropwindow.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtgui/cropwindow.cc b/rtgui/cropwindow.cc index 9cedb6f11..682a38fc3 100644 --- a/rtgui/cropwindow.cc +++ b/rtgui/cropwindow.cc @@ -1951,6 +1951,8 @@ void CropWindow::zoomOut (bool toCursor, int cursorX, int cursorY) if (toCursor) { x = cursorX; y = cursorY; + } else { + screenCoordToImage(xpos + imgX + imgW / 2, ypos + imgY + imgH / 2, x, y); } zoomVersion = exposeVersion; @@ -1980,6 +1982,8 @@ void CropWindow::zoom11 () } zoomVersion = exposeVersion; + } else { + screenCoordToImage(xpos + imgX + imgW / 2, ypos + imgY + imgH / 2, x, y); } changeZoom (zoom11index, true, x, y);