Some fixes for Noise Reduction, Issue 2557 #23
This commit is contained in:
@@ -83,7 +83,7 @@ void ImageArea::on_realize()
|
||||
void ImageArea::on_resized (Gtk::Allocation& req) {
|
||||
if (ipc && get_width()>1) { // sometimes on_resize is called in some init state, causing wrong sizes
|
||||
if (!mainCropWindow) {
|
||||
mainCropWindow = new CropWindow (this, ipc, false);
|
||||
mainCropWindow = new CropWindow (this, ipc, false, false);
|
||||
mainCropWindow->setDecorated (false);
|
||||
mainCropWindow->setFitZoomEnabled (true);
|
||||
mainCropWindow->addCropWindowListener (this);
|
||||
@@ -348,7 +348,7 @@ void ImageArea::addCropWindow () {
|
||||
if (!mainCropWindow)
|
||||
return; // if called but no image is loaded, it would crash
|
||||
|
||||
CropWindow* cw = new CropWindow (this, ipc, true);
|
||||
CropWindow* cw = new CropWindow (this, ipc, true, true);
|
||||
cw->zoom11();
|
||||
cw->setCropGUIListener (cropgl);
|
||||
cw->setPointerMotionListener (pmlistener);
|
||||
|
Reference in New Issue
Block a user