Salome HOME
IPAL21365 : dump study does not work
authorvsr <vsr@opencascade.com>
Fri, 25 Sep 2009 09:30:34 +0000 (09:30 +0000)
committervsr <vsr@opencascade.com>
Fri, 25 Sep 2009 09:30:34 +0000 (09:30 +0000)
src/VISU_I/VISU_DumpPython.cc

index 945739440bdb41f2c12d8f5faf97109e8e997975..a04f0f738b942eff4a7e867b85a09996bfa20774 100644 (file)
@@ -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