Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid too often Standard_OutOfRange
[modules/smesh.git]
/
src
/
SMESHDS
/
SMESHDS_Mesh.cxx
diff --git
a/src/SMESHDS/SMESHDS_Mesh.cxx
b/src/SMESHDS/SMESHDS_Mesh.cxx
index 089e9feecf52d3d2efe338179d855ae3a2eb1aa2..6766fbda76a822021b0426e748ef5dd874b84b67 100644
(file)
--- a/
src/SMESHDS/SMESHDS_Mesh.cxx
+++ b/
src/SMESHDS/SMESHDS_Mesh.cxx
@@
-1376,7
+1376,8
@@
const TopoDS_Shape& SMESHDS_Mesh::IndexToShape(int ShapeIndex) const
{
try
{
- return myIndexToShape.FindKey(ShapeIndex);
+ if ( ShapeIndex > 0 )
+ return myIndexToShape.FindKey(ShapeIndex);
}
catch ( Standard_OutOfRange )
{