From: vsr Date: Fri, 25 Sep 2009 09:30:34 +0000 (+0000) Subject: IPAL21365 : dump study does not work X-Git-Tag: V5_1_main_20090928~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=465b46dded245448c1420f7d1e27593f1676056d;p=modules%2Fvisu.git IPAL21365 : dump study does not work --- diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 94573944..a04f0f73 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -237,7 +237,7 @@ namespace VISU SALOMEDS::SObject_var mySObject; std::string myName; - TCreateFromResult(const SALOMEDS::SObject_var& theSObject, + TCreateFromResult(const SALOMEDS::SObject_ptr theSObject, VISU::ColoredPrs3d_i* theServant, const std::string& theName, const std::string& theConstructorName, @@ -245,9 +245,10 @@ namespace VISU myServant(theServant), myConstructorName(theConstructorName), myArgumentName(theArgumentName), - mySObject(theSObject), myName(theName) - {} + { + mySObject = SALOMEDS::SObject::_duplicate(theSObject); + } virtual std::string