Salome HOME
Dump Python is temporary commented
authorasl <asl@opencascade.com>
Fri, 20 Nov 2009 08:06:10 +0000 (08:06 +0000)
committerasl <asl@opencascade.com>
Fri, 20 Nov 2009 08:06:10 +0000 (08:06 +0000)
src/GEOM_I/GEOM_DumpPython.cc

index 13b9ce36eacb54b073b4a562de53388ba5764363..a134a060c7732d3e85b10c1d1ef0c217c28f739a 100644 (file)
@@ -44,6 +44,7 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy,
                                         CORBA::Boolean isPublished, 
                                         CORBA::Boolean& isValidScript)
 {
+/*ASL: temporary commented for Notebook
   SALOMEDS::Study_var aStudy = SALOMEDS::Study::_narrow(theStudy);
   if(CORBA::is_nil(aStudy))
     return new Engines::TMPFile(0);   
@@ -109,10 +110,10 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy,
   }
 
   aScript += "\n\tpass\n";
-
-  int aLen = aScript.Length(); 
+*/
+  int aLen = 0;/*ASL: aScript.Length(); */
   unsigned char* aBuffer = new unsigned char[aLen+1];
-  strcpy((char*)aBuffer, aScript.ToCString());
+  //ASL : strcpy((char*)aBuffer, aScript.ToCString());
 
   CORBA::Octet* anOctetBuf =  (CORBA::Octet*)aBuffer;
   Engines::TMPFile_var aStreamFile = new Engines::TMPFile(aLen+1, aLen+1, anOctetBuf, 1);