From 17f7f1768ec576845662eba383627385c46d718e Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 9 Jan 2014 11:44:34 +0000 Subject: [PATCH] Refs #320: Point C is shown in reference image, however it isn't checked Import image dockable panel The first part of the bug. --- src/HYDROGUI/HYDROGUI_ImportImageOp.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); } -- 2.30.2