projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0029814: Modeling Data - add method TopoDS_Shape::NbChildren() for simple check of...
[occt.git]
/
src
/
XCAFPrs
/
XCAFPrs.cxx
diff --git
a/src/XCAFPrs/XCAFPrs.cxx
b/src/XCAFPrs/XCAFPrs.cxx
index
762eb44
..
053c3e2
100644
(file)
--- a/
src/XCAFPrs/XCAFPrs.cxx
+++ b/
src/XCAFPrs/XCAFPrs.cxx
@@
-303,8
+303,7
@@
void XCAFPrs::CollectStyleSettings (const TDF_Label& theLabel,
TopoDS_Shape aSubshape = XCAFDoc_ShapeTool::GetShape (aLabel);
if (aSubshape.ShapeType() == TopAbs_COMPOUND)
{
- const TopoDS_Iterator aShapeIter (aSubshape);
- if (!aShapeIter.More())
+ if (aSubshape.NbChildren() == 0)
{
continue;
}