From: asl Date: Thu, 9 Aug 2007 13:28:02 +0000 (+0000) Subject: fix for crash in the case when the rule is finished by at least one white symbol X-Git-Tag: qt4_porting_delivery_220807~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2bada48b3c6e403417f2cc0d86ca30e142f6b3c4;p=modules%2Fgui.git fix for crash in the case when the rule is finished by at least one white symbol --- diff --git a/src/Qtx/QtxEvalExpr.cxx b/src/Qtx/QtxEvalExpr.cxx index 8cab55543..279439f9b 100644 --- a/src/Qtx/QtxEvalExpr.cxx +++ b/src/Qtx/QtxEvalExpr.cxx @@ -371,7 +371,7 @@ bool QtxEvalParser::prepare( const QString& expr, Postfix& post ) while ( pos < len && error() == QtxEvalExpr::OK ) { PostfixItem item; - while ( expr[pos].isSpace() && pos < len ) + while ( pos < len && expr[pos].isSpace() ) pos++; if ( pos >= len ) break;