Solving issue #3249: "Fit crop to screen doesn't work as expected
anymore"
This commit is contained in:
@@ -1873,6 +1873,7 @@ void CropWindow::zoomFitCrop ()
|
|||||||
int centerX, centerY;
|
int centerX, centerY;
|
||||||
centerX = cropHandler.cropParams.x + cropHandler.cropParams.w / 2;
|
centerX = cropHandler.cropParams.x + cropHandler.cropParams.w / 2;
|
||||||
centerY = cropHandler.cropParams.y + cropHandler.cropParams.h / 2;
|
centerY = cropHandler.cropParams.y + cropHandler.cropParams.h / 2;
|
||||||
|
setCropAnchorPosition(centerX, centerY);
|
||||||
changeZoom (cz, true, centerX, centerY);
|
changeZoom (cz, true, centerX, centerY);
|
||||||
fitZoom = false;
|
fitZoom = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user