PAL20889 Regression: Geometry objects "shell" and "solid" are not dumped

fix for scenario
- create partition with default box as object, plane as tool
- dump study
Result: exception.

error is in ReplaceVariables() on "[]" variable
This commit is contained in:
eap 2009-02-13 13:31:36 +00:00
parent 153f2835d5
commit b52472cb64

View File

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