Fixes a case of undefined behaviour when opening a new default window, Issue 2277
This commit is contained in:
@@ -526,6 +526,7 @@ class CropParams {
|
||||
Glib::ustring orientation;
|
||||
Glib::ustring guide;
|
||||
|
||||
CropParams() :enabled(false), x(0),y(0),w(0),h(0),fixratio(false) {};
|
||||
void mapToResized(int resizedWidth, int resizedHeight, int scale, int &x1, int &x2, int &y1, int &y2) const;
|
||||
};
|
||||
|
||||
|
@@ -28,7 +28,7 @@
|
||||
using namespace rtengine;
|
||||
|
||||
CropHandler::CropHandler ()
|
||||
: zoom(10), cx(0), cy(0), cw(0), ch(0),
|
||||
: zoom(10), ww(0), wh(0), cx(0), cy(0), cw(0), ch(0),
|
||||
cropX(0), cropY(0), cropW(0), cropH(0), enabled(false),
|
||||
cropimg(NULL), cropimgtrue(NULL), ipc(NULL), crop(NULL), listener(NULL), isLowUpdatePriority(false) {
|
||||
|
||||
|
Reference in New Issue
Block a user