From a4dbca82760ecdacfd19cf3e5e868f5be97d1107 Mon Sep 17 00:00:00 2001 From: mkr Date: Mon, 20 Mar 2006 13:52:09 +0000 Subject: [PATCH] Fix for bug IPAL11865 : It is impossible to dump Supervisor study at the second time. --- src/GEOM/GEOM_Engine.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2