From 0b32f12f6c405929054f03c35b6fddc5efa15ca8 Mon Sep 17 00:00:00 2001 From: Hombre Date: Sun, 21 Feb 2016 00:20:34 +0100 Subject: [PATCH] Solving issue #3163: "Detail window centres to whole image instead of centre of preview" --- rtgui/imagearea.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rtgui/imagearea.cc b/rtgui/imagearea.cc index ce0699664..5383058e3 100644 --- a/rtgui/imagearea.cc +++ b/rtgui/imagearea.cc @@ -474,7 +474,13 @@ void ImageArea::addCropWindow () cw->setEditSubscriber (getCurrSubscriber()); cw->enable(); // start processing! - cw->centerCrop(); + { + int anchorX = 0; + int anchorY = 0; + mainCropWindow->getCropAnchorPosition(anchorX, anchorY); + cw->setCropAnchorPosition(anchorX, anchorY); + } + mainCropWindow->setObservedCropWin (cropWins.front()); if(cropWins.size() == 1) { // after first detail window we already have high quality