]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Refs #320: Point C is shown in reference image, however it isn't checked Import image...
authornds <nds@opencascade.com>
Thu, 9 Jan 2014 11:44:34 +0000 (11:44 +0000)
committernds <nds@opencascade.com>
Thu, 9 Jan 2014 11:44:34 +0000 (11:44 +0000)
The first part of the bug.

src/HYDROGUI/HYDROGUI_ImportImageOp.cxx

index 383c7448cd06ef6e06ec24993d728f0579dd9710..625d263612f4ab2b9f8578523314c326200820c8 100644 (file)
@@ -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();
     }