From: eap Date: Fri, 13 Feb 2009 13:31:36 +0000 (+0000) Subject: PAL20889 Regression: Geometry objects "shell" and "solid" are not dumped X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b52472cb648d6d6596bb9da36707b399c333d7d1;p=modules%2Fgeom.git 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 --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index a30887bb6..e8a25f375 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -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 = "<