Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8dbde85
)
NPAL15983 (EDF PAL 413: Bug when displaying empty groups)
author
eap
<eap@opencascade.com>
Fri, 18 May 2007 13:47:36 +0000
(13:47 +0000)
committer
eap
<eap@opencascade.com>
Fri, 18 May 2007 13:47:36 +0000
(13:47 +0000)
/* Case of only one subshape */
- if (list->length() == 1) {
+ if (list->length() == 1 && list[0] > 0) {
S = anIndices.FindKey(list[0]);
}
src/GEOMClient/GEOM_Client.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMClient/GEOM_Client.cxx
b/src/GEOMClient/GEOM_Client.cxx
index 2659f6209b4f5a38bba8e62f6932f59d71aa854c..3e8eb2058c0d164fe2b3d97b64240038852f1254 100644
(file)
--- a/
src/GEOMClient/GEOM_Client.cxx
+++ b/
src/GEOMClient/GEOM_Client.cxx
@@
-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 {