From 0ea3ad87817654e326dc73ceb49565974024c46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Sat, 28 Apr 2018 10:05:35 +0200 Subject: [PATCH 1/2] Prevent coarse display when updating parameters --- rtgui/crophandler.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/rtgui/crophandler.cc b/rtgui/crophandler.cc index 5ab57eacd..ecef3fa3b 100644 --- a/rtgui/crophandler.cc +++ b/rtgui/crophandler.cc @@ -313,8 +313,6 @@ void CropHandler::setDetailedCrop (IImage8* im, IImage8* imtrue, rtengine::procp cropParams = cp; colorParams = cmp; - cropPixbuf.clear (); - if (!cropimg.empty()) { cropimg.clear(); } From bf54ea50a2ee1ad63069321d36315120fdd3cdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Sat, 28 Apr 2018 10:06:27 +0200 Subject: [PATCH 2/2] Don't force update when switching images (#4476) --- rtgui/editorpanel.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index 60dd25e7e..76bf2794a 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -1053,13 +1053,6 @@ void EditorPanel::open (Thumbnail* tmb, rtengine::InitialImage* isrc) // since there was no resize event if (iareapanel->imageArea->mainCropWindow) { iareapanel->imageArea->mainCropWindow->cropHandler.newImage (ipc, false); - - // In single tab mode, the image is not always updated between switches - // normal redraw don't work, so this is the hard way - // Disabled this with Issue 2435 because it seems to work fine now -// if (!options.tabbedUI && iareapanel->imageArea->mainCropWindow->getZoomFitVal() == 1.0) { - iareapanel->imageArea->mainCropWindow->cropHandler.update(); -// } } else { Gtk::Allocation alloc; iareapanel->imageArea->on_resized (alloc); @@ -2205,7 +2198,7 @@ void EditorPanel::beforeAfterToggled () rtengine::RenderingIntent intent; ipc->getMonitorProfile(monitorProfile, intent); beforeIpc->setMonitorProfile(monitorProfile, intent); - + beforeIarea->imageArea->setPreviewHandler (beforePreviewHandler); beforeIarea->imageArea->setImProcCoordinator (beforeIpc);