mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 16:32:04 +05:00
NPAL15983 (EDF PAL 413: Bug when displaying empty groups)
/* Case of only one subshape */ - if (list->length() == 1) { + if (list->length() == 1 && list[0] > 0) { S = anIndices.FindKey(list[0]); }
This commit is contained in:
parent
8dbde85ddc
commit
645aebdeb7
@ -222,7 +222,7 @@ TopoDS_Shape GEOM_Client::GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_p
|
||||
TopExp::MapShapes(aMainShape, anIndices);
|
||||
|
||||
/* Case of only one subshape */
|
||||
if (list->length() == 1) {
|
||||
if (list->length() == 1 && list[0] > 0) {
|
||||
S = anIndices.FindKey(list[0]);
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user