]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the 21451: EDF 1831 VISU: "Set default" in CutPlanes is not taken into accoun... V6_main_20111219 V6_main_20111220 V6_main_20111222 V6_main_20111223 V6_main_20111226
authorrnv <rnv@opencascade.com>
Fri, 16 Dec 2011 14:15:23 +0000 (14:15 +0000)
committerrnv <rnv@opencascade.com>
Fri, 16 Dec 2011 14:15:23 +0000 (14:15 +0000)
src/PIPELINE/VISU_CutPlanesPL.cxx

index 2c56a5648dd9eb751a31ac053e54535cd8fbf1c9..e48517fdf0becfb5769c8467e8583349759091f3 100644 (file)
@@ -122,9 +122,12 @@ VISU_CutPlanesPL
     SetDisplacement(aPipeLine->GetDisplacement());
 
     SetNbParts(aPipeLine->GetNbParts());
-    for (int i = 0, iEnd = GetNbParts(); i < iEnd; i++)
+    for (int i = 0, iEnd = GetNbParts(); i < iEnd; i++) {
       if(!aPipeLine->IsPartDefault(i))  
         SetPartPosition(i, aPipeLine->GetPartPosition(i));
+      else 
+        SetPartDefault(i);
+    }          
   }
 }