From 977e4730547a6a832568353a604db52b6db6719e Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 1 Jun 2005 06:57:51 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxStdOperations.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxStdOperations.cxx b/src/Qtx/QtxStdOperations.cxx index a1613c40d..a81c1aad6 100644 --- a/src/Qtx/QtxStdOperations.cxx +++ b/src/Qtx/QtxStdOperations.cxx @@ -346,6 +346,7 @@ QtxParser::Error QtxLogic::calculate( const QString& op, { QtxParser::Error err = QtxParser::OK; if( v1.isValid() && v2.isValid() ) + { if( op=="and" || op=="&&" ) set( v1, v1.toBool() && v2.toBool() ); else if( op=="or" || op=="||" ) @@ -356,7 +357,7 @@ QtxParser::Error QtxLogic::calculate( const QString& op, set( v1, !v1.toBool() || v2.toBool() ); else if( op=="=" ) set( v1, v1.toBool()==v2.toBool() ); - + } else if( op=="not" || op=="!" ) v2 = !v2.toBool(); -- 2.39.2