From 68ee327b25304a67be22b05ee0f29e2c9833cc5f Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 13 May 2014 04:12:57 +0100 Subject: [PATCH] Compute the histogram with a new frame --- source/app/PropertiesSidebar.cpp | 3 ++- source/app/plaYUVerApp.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/app/PropertiesSidebar.cpp b/source/app/PropertiesSidebar.cpp index cb269bf..428cffa 100755 --- a/source/app/PropertiesSidebar.cpp +++ b/source/app/PropertiesSidebar.cpp @@ -554,7 +554,8 @@ void FramePropertiesSideBar::slotUpdateDataHistogram() // If a selection area is done in Image Editor and if the current // image is the same in Image Viewer, then compute too the histogram // for this selection. - histogramWidget->updateData( m_pcFrame, NULL ); + // New frame required to separate from the thread + histogramWidget->updateData( new PlaYUVerFrame(m_pcFrame), NULL ); fullImageButton->hide(); selectionImageButton->hide(); } diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 26e4891..dec355e 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -230,6 +230,7 @@ void plaYUVerApp::closeAll() void plaYUVerApp::selectModule( QAction *curr_action ) { + m_pcFrameProperties->stopHistogram(); SubWindowHandle *interfaceChild = m_pcModulesHandle->toggleSelectedModuleIf(); if( interfaceChild ) {