Merge pull request #4523 from Beep6581/gui-fixes

GUI update fixes
This commit is contained in:
Floessie
2018-04-30 07:37:51 +02:00
committed by GitHub
2 changed files with 1 additions and 10 deletions

View File

@@ -313,8 +313,6 @@ void CropHandler::setDetailedCrop (IImage8* im, IImage8* imtrue, rtengine::procp
cropParams = cp;
colorParams = cmp;
cropPixbuf.clear ();
if (!cropimg.empty()) {
cropimg.clear();
}

View File

@@ -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);