]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for bug IPAL11865 : It is impossible to dump Supervisor study at the second time. OCC_3_2_0a2_TC
authormkr <mkr@opencascade.com>
Mon, 20 Mar 2006 13:52:09 +0000 (13:52 +0000)
committermkr <mkr@opencascade.com>
Mon, 20 Mar 2006 13:52:09 +0000 (13:52 +0000)
src/GEOM/GEOM_Engine.cxx

index c6ca2f4936b04dc8af95c6a1096473409b31bd24..bf50e95bad508f97d82365c62c3468c1c30bf094 100644 (file)
@@ -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 )