mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:37:28 +05:00
Avoid too often Standard_OutOfRange
This commit is contained in:
parent
9c9403c272
commit
12d0e1ecd2
@ -1376,7 +1376,8 @@ const TopoDS_Shape& SMESHDS_Mesh::IndexToShape(int ShapeIndex) const
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return myIndexToShape.FindKey(ShapeIndex);
|
if ( ShapeIndex > 0 )
|
||||||
|
return myIndexToShape.FindKey(ShapeIndex);
|
||||||
}
|
}
|
||||||
catch ( Standard_OutOfRange )
|
catch ( Standard_OutOfRange )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user