From: nds Date: Thu, 9 Jan 2014 11:44:34 +0000 (+0000) Subject: Refs #320: Point C is shown in reference image, however it isn't checked Import image... X-Git-Tag: BR_hydro_v_0_8~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=17f7f1768ec576845662eba383627385c46d718e;p=modules%2Fhydro.git Refs #320: Point C is shown in reference image, however it isn't checked Import image dockable panel The first part of the bug. --- diff --git a/src/HYDROGUI/HYDROGUI_ImportImageOp.cxx b/src/HYDROGUI/HYDROGUI_ImportImageOp.cxx index 383c7448..625d2636 100644 --- a/src/HYDROGUI/HYDROGUI_ImportImageOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ImportImageOp.cxx @@ -683,7 +683,11 @@ void HYDROGUI_ImportImageOp::onRefImageActivated( const QString& theName ) ///// Get a view port for the reference image preview if( myRefViewManager ) { - if( GraphicsView_Viewer* aViewer = myRefViewManager->getViewer() ) + if( theName.isEmpty() ) + { + closeView( myRefViewManager ); + } + else if( GraphicsView_Viewer* aViewer = myRefViewManager->getViewer() ) { aViewPort = aViewer->getActiveViewPort(); }