From 2bada48b3c6e403417f2cc0d86ca30e142f6b3c4 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 9 Aug 2007 13:28:02 +0000 Subject: [PATCH] fix for crash in the case when the rule is finished by at least one white symbol --- src/Qtx/QtxEvalExpr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2