diff --git a/src/RWMesh/RWMesh_CafReader.cxx b/src/RWMesh/RWMesh_CafReader.cxx index 6db946c90d..f087fb89fa 100644 --- a/src/RWMesh/RWMesh_CafReader.cxx +++ b/src/RWMesh/RWMesh_CafReader.cxx @@ -366,9 +366,7 @@ void RWMesh_CafReader::generateNames (const TCollection_AsciiString& theFile, if (theWithSubLabels) { - for (XCAFPrs_DocumentExplorer aDocIter (myXdeDoc, - aNewRootLabels, - XCAFPrs_DocumentExplorerFlags_OnlyLeafNodes | XCAFPrs_DocumentExplorerFlags_NoStyle); + for (XCAFPrs_DocumentExplorer aDocIter (myXdeDoc, aNewRootLabels, XCAFPrs_DocumentExplorerFlags_NoStyle); aDocIter.More(); aDocIter.Next()) { if (aDocIter.CurrentDepth() == 0