From: asl Date: Fri, 20 Nov 2009 08:06:10 +0000 (+0000) Subject: Dump Python is temporary commented X-Git-Tag: PHASE_17_Part1_V1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abe8226614aeed9910086a8dfa23a1fb3acba73c;p=modules%2Fgeom.git Dump Python is temporary commented --- diff --git a/src/GEOM_I/GEOM_DumpPython.cc b/src/GEOM_I/GEOM_DumpPython.cc index 13b9ce36e..a134a060c 100644 --- a/src/GEOM_I/GEOM_DumpPython.cc +++ b/src/GEOM_I/GEOM_DumpPython.cc @@ -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);