From: mkr Date: Mon, 20 Mar 2006 13:52:09 +0000 (+0000) Subject: Fix for bug IPAL11865 : It is impossible to dump Supervisor study at the second time. X-Git-Tag: OCC_3_2_0a2_TC X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a4dbca82760ecdacfd19cf3e5e868f5be97d1107;p=modules%2Fgeom.git Fix for bug IPAL11865 : It is impossible to dump Supervisor study at the second time. --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index c6ca2f493..bf50e95ba 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -474,7 +474,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID, } //Add final part of the script - if(aSeq->Value(aLen) < aScriptLength) anUpdatedScript += aScript.SubString(aSeq->Value(aLen)+1, aScriptLength); + if(aLen && aSeq->Value(aLen) < aScriptLength) anUpdatedScript += aScript.SubString(aSeq->Value(aLen)+1, aScriptLength); // mkr : IPAL11865 // Make script to publish in study if ( isPublished )