]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To implement more accurate VISU_PipeLine::ShallowCopy method
authorapo <apo@opencascade.com>
Mon, 18 Dec 2006 13:22:05 +0000 (13:22 +0000)
committerapo <apo@opencascade.com>
Mon, 18 Dec 2006 13:22:05 +0000 (13:22 +0000)
src/VISUGUI/VisuGUI_Plot3DDlg.cxx

index c6a47d3dfffdd1f7d3b3029c7a7b048ecec9bce9..afc92def5697a6275b3805a453444db41ae3b864 100644 (file)
@@ -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);
 }
 
 //=======================================================================