From: rnv Date: Fri, 16 Dec 2011 14:15:23 +0000 (+0000) Subject: Fix for the 21451: EDF 1831 VISU: "Set default" in CutPlanes is not taken into accoun... X-Git-Tag: V6_main_20111219 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2cefe0bc18a4bd45a9d165cdc7b76e5a2025cde5;p=modules%2Fvisu.git Fix for the 21451: EDF 1831 VISU: "Set default" in CutPlanes is not taken into account issue from mantis. --- 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); + } } }