some tweaks to the cropping GUI, inspired by recent comments on pixls.us

This commit is contained in:
Alberto Griggio
2018-01-01 22:48:16 +01:00
parent e9782e15e2
commit 0ac3bafbca
2 changed files with 20 additions and 6 deletions

View File

@@ -638,7 +638,7 @@ void ImageArea::initialImageArrived (CropWindow* cw)
if (mainCropWindow) {
if(firstOpen || options.prevdemo != PD_Sidecar || (!options.rememberZoomAndPan) ) {
mainCropWindow->zoomFit ();
mainCropWindow->zoomFitCrop ();
firstOpen = false;
mainCropWindow->cropHandler.getFullImageSize(fullImageWidth, fullImageHeight);
} else {
@@ -646,7 +646,7 @@ void ImageArea::initialImageArrived (CropWindow* cw)
mainCropWindow->cropHandler.getFullImageSize(w, h);
if(w != fullImageWidth || h != fullImageHeight) {
mainCropWindow->zoomFit ();
mainCropWindow->zoomFitCrop ();
}
fullImageWidth = w;