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
compilation on Linux
[modules/hydro.git]
/
src
/
HYDRO_tests
/
TestViewer.cxx
diff --git
a/src/HYDRO_tests/TestViewer.cxx
b/src/HYDRO_tests/TestViewer.cxx
index 1fef8ca1a5dca3e73054239941adb43b0e6a04c7..8315d811ff5d02c3cfccbe535c3a6d775c89b465 100644
(file)
--- a/
src/HYDRO_tests/TestViewer.cxx
+++ b/
src/HYDRO_tests/TestViewer.cxx
@@
-133,6
+133,10
@@
void TestViewer::show( const TopoDS_Shape& theShape, int theMode, bool isFitAll,
context()->EraseAll( Standard_False );
myKey = theKey;
+
+ if( theShape.IsNull() )
+ return;
+
int i = 0;
if( theShape.ShapeType()==TopAbs_SHELL )
{