Fix random behaviour when opening images in SETM and 'Auto zoom to fit the crop area' is enabled, fixes #4357

This commit is contained in:
heckflosse
2018-02-03 12:57:36 +01:00
parent 8bc414948d
commit 3e2e7717b1
5 changed files with 12 additions and 24 deletions

View File

@@ -65,7 +65,6 @@ protected:
void get_preferred_height_for_width_vfunc (int width, int &minimum_height, int &natural_height) const;
void get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const;
bool firstOpen;
int fullImageWidth, fullImageHeight;
public:
CropWindow* mainCropWindow;
@@ -148,7 +147,7 @@ public:
void cropPositionChanged (CropWindow* cw);
void cropWindowSizeChanged (CropWindow* cw);
void cropZoomChanged (CropWindow* cw);
void initialImageArrived (CropWindow* cw) ;
void initialImageArrived ();
// LockablePickerToolListener interface
void switchPickerVisibility (bool isVisible);