From 2cefe0bc18a4bd45a9d165cdc7b76e5a2025cde5 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 16 Dec 2011 14:15:23 +0000 Subject: [PATCH] Fix for the 21451: EDF 1831 VISU: "Set default" in CutPlanes is not taken into account issue from mantis. --- src/PIPELINE/VISU_CutPlanesPL.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PIPELINE/VISU_CutPlanesPL.cxx b/src/PIPELINE/VISU_CutPlanesPL.cxx index 2c56a564..e48517fd 100644 --- a/src/PIPELINE/VISU_CutPlanesPL.cxx +++ b/src/PIPELINE/VISU_CutPlanesPL.cxx @@ -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); + } } } -- 2.39.2