Batch queue/preview stability enhancements; see issue #611
This commit is contained in:
@@ -61,14 +61,14 @@ 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);
|
||||
mainCropWindow = new CropWindow (this, ipc, false);
|
||||
mainCropWindow->setDecorated (false);
|
||||
mainCropWindow->setFitZoomEnabled (true);
|
||||
mainCropWindow->setPosition (0, 0);
|
||||
mainCropWindow->setSize (get_width(), get_height());
|
||||
mainCropWindow->addCropWindowListener (this);
|
||||
mainCropWindow->setCropGUIListener (cropgl);
|
||||
mainCropWindow->setPointerMotionListener (pmlistener);
|
||||
mainCropWindow->setPosition (0, 0);
|
||||
mainCropWindow->setSize (get_width(), get_height(), false); // this execute the refresh itself
|
||||
}
|
||||
else {
|
||||
mainCropWindow->setSize (get_width(), get_height());
|
||||
@@ -246,7 +246,7 @@ 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);
|
||||
CropWindow* cw = new CropWindow (this, ipc, true);
|
||||
cw->zoom11();
|
||||
cw->setCropGUIListener (cropgl);
|
||||
cw->setPointerMotionListener (pmlistener);
|
||||
|
Reference in New Issue
Block a user