From: mzn Date: Tue, 8 Aug 2006 14:41:47 +0000 (+0000) Subject: Fix for bug IPAL13148("Base plane parameter" isn't saved for "Cut Lines" presentation). X-Git-Tag: For_OCT_611~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bafb4489a672e9a4de5022d3d1bc535a3fb56dac;p=modules%2Fvisu.git Fix for bug IPAL13148("Base plane parameter" isn't saved for "Cut Lines" presentation). --- diff --git a/src/PIPELINE/VISU_CutLinesPL.cxx b/src/PIPELINE/VISU_CutLinesPL.cxx index 322e69ee..a7561e48 100644 --- a/src/PIPELINE/VISU_CutLinesPL.cxx +++ b/src/PIPELINE/VISU_CutLinesPL.cxx @@ -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; }