Salome HOME
projects
/
modules
/
hydro.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659dc90
)
Refs #320: Point C is shown in reference image, however it isn't checked Import image...
author
nds
<nds@opencascade.com>
Thu, 9 Jan 2014 11:44:34 +0000
(11:44 +0000)
committer
nds
<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
patch
|
blob
|
history
diff --git
a/src/HYDROGUI/HYDROGUI_ImportImageOp.cxx
b/src/HYDROGUI/HYDROGUI_ImportImageOp.cxx
index 383c7448cd06ef6e06ec24993d728f0579dd9710..625d263612f4ab2b9f8578523314c326200820c8 100644
(file)
--- 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();
}