]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Bug #1190: Height of extrusion is shown wrong in opened study
authordbv <dbv@opencascade.com>
Mon, 28 Dec 2015 13:17:19 +0000 (16:17 +0300)
committerdbv <dbv@opencascade.com>
Mon, 28 Dec 2015 13:17:35 +0000 (16:17 +0300)
src/Model/Model_BodyBuilder.cpp

index 614afa3b53126a7c1bb8cb3b58f4cc6e95d1bed3..9a8eaa643dbac955e811e76cf12f73d43416117e 100755 (executable)
@@ -79,7 +79,7 @@ static void evolutionToSelectionRec(TDF_Label theLab, const bool theFlag) {
   std::list<std::pair<TopoDS_Shape, TopoDS_Shape> >::iterator aPairsIter = aShapePairs.begin();
   for(; aPairsIter != aShapePairs.end(); aPairsIter++) {
     if (theFlag) { // disabled => make selection
-      aBuilder.Select(aPairsIter->first, aPairsIter->second);
+      aBuilder.Select(aPairsIter->second, aPairsIter->first);
     } else if (anEvol == TNaming_GENERATED) {
       aBuilder.Generated(aPairsIter->first, aPairsIter->second);
     } else if (anEvol == TNaming_MODIFY) {
@@ -89,7 +89,7 @@ static void evolutionToSelectionRec(TDF_Label theLab, const bool theFlag) {
     } else if (anEvol == TNaming_PRIMITIVE) {
       aBuilder.Generated(aPairsIter->second);
     } else if (anEvol == TNaming_SELECTED) {
-      aBuilder.Select(aPairsIter->first, aPairsIter->second);
+      aBuilder.Select(aPairsIter->second, aPairsIter->first);
     }
   }
   // recursive call for all sub-labels