Fixes a case of undefined behaviour when opening a new default window, Issue 2277

This commit is contained in:
Ingo
2014-03-24 21:19:15 +01:00
parent db633c4800
commit fac51a63d8
2 changed files with 2 additions and 1 deletions

View File

@@ -526,6 +526,7 @@ class CropParams {
Glib::ustring orientation; Glib::ustring orientation;
Glib::ustring guide; 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; void mapToResized(int resizedWidth, int resizedHeight, int scale, int &x1, int &x2, int &y1, int &y2) const;
}; };

View File

@@ -28,7 +28,7 @@
using namespace rtengine; using namespace rtengine;
CropHandler::CropHandler () 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), cropX(0), cropY(0), cropW(0), cropH(0), enabled(false),
cropimg(NULL), cropimgtrue(NULL), ipc(NULL), crop(NULL), listener(NULL), isLowUpdatePriority(false) { cropimg(NULL), cropimgtrue(NULL), ipc(NULL), crop(NULL), listener(NULL), isLowUpdatePriority(false) {