From abe8226614aeed9910086a8dfa23a1fb3acba73c Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 20 Nov 2009 08:06:10 +0000 Subject: [PATCH] Dump Python is temporary commented --- src/GEOM_I/GEOM_DumpPython.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.39.2