]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL20889 Regression: Geometry objects "shell" and "solid" are not dumped BR_V5_DEV
authoreap <eap@opencascade.com>
Fri, 13 Feb 2009 13:31:36 +0000 (13:31 +0000)
committereap <eap@opencascade.com>
Fri, 13 Feb 2009 13:31:36 +0000 (13:31 +0000)
   fix for scenario
- create partition with default box as object, plane as tool
- dump study
Result: exception.

error is in ReplaceVariables() on "[]" variable

src/GEOM/GEOM_Engine.cxx

index a30887bb69b7778a5e8ae5ea8dc459b4d34e3a63..e8a25f375aa0c4707d9dbade34c8698badd37c8d 100644 (file)
@@ -927,6 +927,8 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
        aStartPos++;
       if( aCommand.Value( aEndPos-1 ) == C_SQR_BRACKET )
        aEndPos--;
+      if ( aStartPos == aEndPos )
+        continue; // PAL20889: for "[]"
 
       if(MYDEBUG) 
        cout<<"aStartPos = "<<aStartPos<<", aEndPos = "<<aEndPos<<endl;