From b52472cb648d6d6596bb9da36707b399c333d7d1 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 13 Feb 2009 13:31:36 +0000 Subject: [PATCH] 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 --- src/GEOM/GEOM_Engine.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 = "<