From 465b46dded245448c1420f7d1e27593f1676056d Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 25 Sep 2009 09:30:34 +0000 Subject: [PATCH] IPAL21365 : dump study does not work --- src/VISU_I/VISU_DumpPython.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2