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 = "<