make CropWindow::zoomFitCrop call CropWindow::zoomFit if the image has no crop

This commit is contained in:
Alberto Griggio
2017-03-21 13:37:55 +01:00
parent e533c9c91a
commit 2f9df50be3
3 changed files with 4 additions and 2 deletions

View File

@@ -2082,6 +2082,8 @@ void CropWindow::zoomFitCrop ()
setCropAnchorPosition(centerX, centerY);
changeZoom (cz, true, centerX, centerY);
fitZoom = false;
} else {
zoomFit();
}
}

View File

@@ -1136,7 +1136,7 @@ Gtk::Widget* Preferences::getGeneralPanel ()
Gtk::HBox *zoombox = Gtk::manage(new Gtk::HBox());
rememberZoomPanCheckbutton = Gtk::manage( new Gtk::CheckButton (M("PREFERENCES_REMEMBERZOOMPAN")) );
rememberZoomPanCheckbutton->set_tooltip_text(M("PREFERENCES_REMEMBERZOOMPAN_TOOLTIP"));
extendedZoomLevelsCheckbutton = Gtk::manage( new Gtk::CheckButton (M("PREFERENCES_EXTENDEDZOOMLEVELS")) );
extendedZoomLevelsCheckbutton = Gtk::manage( new Gtk::CheckButton (M("PREFERENCES_EXTENDEDZOOMLEVELS") + " (" + M("PREFERENCES_APPLNEXTSTARTUP") + ")") );
extendedZoomLevelsCheckbutton->set_tooltip_text(M("PREFERENCES_EXTENDEDZOOMLEVELS_TOOLTIP"));
zoombox->set_spacing(10);
zoombox->pack_start(*rememberZoomPanCheckbutton);