Solving issue #3163: "Detail window centres to whole image instead of

centre of preview"
This commit is contained in:
Hombre
2016-02-21 00:20:34 +01:00
parent c40979340b
commit 0b32f12f6c

View File

@@ -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