]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix incorrect order of results when processing compsolids
authorazv <azv@opencascade.com>
Mon, 13 May 2019 11:39:47 +0000 (14:39 +0300)
committerazv <azv@opencascade.com>
Mon, 13 May 2019 11:39:47 +0000 (14:39 +0300)
src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp

index e39c1f99fbbc6a3ed2ec8785a64ee1479861c30a..44612077c4e4a4a35119df1dc5c578fc399fb871 100644 (file)
@@ -575,16 +575,14 @@ void FeaturesPlugin_Boolean::ObjectHierarchy::SplitCompound(const GeomShapePtr&
   if (aFoundIndex == myParentIndices.end())
     return; // no such shape
 
-  const ListOfShape& aSubs = mySubshapes[aFoundIndex->second].second;
+  theUsed = mySubshapes[aFoundIndex->second].second;
   SetOfShape aSubsSet;
-  aSubsSet.insert(aSubs.begin(), aSubs.end());
+  aSubsSet.insert(theUsed.begin(), theUsed.end());
 
   for (GeomAPI_ShapeIterator anExp(theCompShape); anExp.more(); anExp.next()) {
     GeomShapePtr aCurrent = anExp.current();
     if (aSubsSet.find(aCurrent) == aSubsSet.end())
       theNotUsed.push_back(aCurrent);
-    else
-      theUsed.push_back(aCurrent);
   }
 }