Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #441: crash in digue construction
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_ShowHideOp.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_ShowHideOp.cxx
b/src/HYDROGUI/HYDROGUI_ShowHideOp.cxx
index d754a33a9d55c336e3d4853a085a768f5537bd7f..4dba86de8bea240269a8c7c8135c6f9e89253be6 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_ShowHideOp.cxx
+++ b/
src/HYDROGUI/HYDROGUI_ShowHideOp.cxx
@@
-147,7
+147,11
@@
void HYDROGUI_ShowHideOp::startOperation()
}
else if ( anObject->GetKind() == KIND_BATHYMETRY && aVisibility )
{
}
else if ( anObject->GetKind() == KIND_BATHYMETRY && aVisibility )
{
- if ( !(anUpdateFlags & UF_VTKViewer) )
+ if ( anUpdateFlags & UF_OCCViewer )
+ {
+ aModule->setObjectVisible( aViewId, anObject, aVisibility );
+ }
+ else if ( !(anUpdateFlags & UF_VTKViewer) )
{
// Activate VTK viewer if show a bathymetry
aVTKMgr = aModule->getApp()->viewManager( SVTK_Viewer::Type() );
{
// Activate VTK viewer if show a bathymetry
aVTKMgr = aModule->getApp()->viewManager( SVTK_Viewer::Type() );