Fixed a crash on opening crop window (see second of the two issue in #314 for details)

This commit is contained in:
Oliver Duis
2010-11-11 16:12:25 +01:00
parent e8527f79b2
commit 96427328b3

View File

@@ -229,7 +229,8 @@ void ImageArea::unGrabFocus () {
}
void ImageArea::addCropWindow () {
if (!mainCropWindow) return; // if called but no image is loaded, it would crash
CropWindow* cw = new CropWindow (this, ipc);
cw->zoom11();
cw->setCropGUIListener (cropgl);