]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL13148("Base plane parameter" isn't saved for "Cut Lines" presentation).
authormzn <mzn@opencascade.com>
Tue, 8 Aug 2006 14:41:47 +0000 (14:41 +0000)
committermzn <mzn@opencascade.com>
Tue, 8 Aug 2006 14:41:47 +0000 (14:41 +0000)
src/PIPELINE/VISU_CutLinesPL.cxx

index 322e69ee6fc126c6741c48fb5eb4a1a5b140d96d..a7561e48721ccd0a10fd1927e45c0f2d6a139f18 100644 (file)
@@ -49,8 +49,10 @@ VISU_CutLinesPL
     SetOrientation(aPipeLine->GetPlaneOrientation(1),
                   aPipeLine->GetRotateX(1),aPipeLine->GetRotateY(1),1);
     SetDisplacement(aPipeLine->GetDisplacement(1),1);
-    SetDefault();
-    if (!aPipeLine->IsDefault()) SetPosition(aPipeLine->GetPosition());
+    if (aPipeLine->IsDefault())
+      SetDefault();
+    else
+      SetPosition(aPipeLine->GetPosition());
   }
   VISU_CutPlanesPL::ShallowCopy(thePipeLine);
 }
@@ -106,6 +108,7 @@ int
 VISU_CutLinesPL
 ::IsDefault()
 {
+  
   return myCondition;
 }