From: apo Date: Mon, 18 Dec 2006 13:22:05 +0000 (+0000) Subject: To implement more accurate VISU_PipeLine::ShallowCopy method X-Git-Tag: WP1_2_3_20-12-2006_bug_fixing~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0c2c913cc36cef49be04d8c83191e308f2f258bf;p=modules%2Fvisu.git To implement more accurate VISU_PipeLine::ShallowCopy method --- diff --git a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx index c6a47d3d..afc92def 100644 --- a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx +++ b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx @@ -267,8 +267,7 @@ void VisuGUI_Plot3DPane::storePrsParams() if (!myPipeCopy) myPipeCopy = VISU_Plot3DPL::New(); if (myPrs) { - myPipeCopy->SetIDMapper(myPrs->GetPipeLine()->GetIDMapper()); - myPipeCopy->ShallowCopy(myPrs->GetPipeLine()); + myPipeCopy->ShallowCopy(myPrs->GetPipeLine(), true); storeToPrsObject(myPrs); } } @@ -282,7 +281,7 @@ void VisuGUI_Plot3DPane::restorePrsParams() if (!myPipeCopy) myPipeCopy = VISU_Plot3DPL::New(); if (myPrs) - myPrs->GetPipeLine()->ShallowCopy(myPipeCopy); + myPrs->GetPipeLine()->ShallowCopy(myPipeCopy, false); } //=======================================================================