From bafb4489a672e9a4de5022d3d1bc535a3fb56dac Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 8 Aug 2006 14:41:47 +0000 Subject: [PATCH] Fix for bug IPAL13148("Base plane parameter" isn't saved for "Cut Lines" presentation). --- src/PIPELINE/VISU_CutLinesPL.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.2