From b50829db650274bf6ccfad0f72993ac41f861e51 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 9 Jun 2005 11:10:54 +0000 Subject: [PATCH] Fix of error: if rule contains part " in ", this part was false always --- src/Qtx/QtxStdOperations.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxStdOperations.cxx b/src/Qtx/QtxStdOperations.cxx index c87990d30..5301bfef8 100644 --- a/src/Qtx/QtxStdOperations.cxx +++ b/src/Qtx/QtxStdOperations.cxx @@ -796,7 +796,10 @@ QtxParser::Error QtxSets::calculate( const QString& op, QtxValue& v1, QtxValue& set( v1, res ); } else - v1 = v2.toList().contains( v1 ); + { + const QValueList< QVariant >& list = v2.toList(); + v1 = ( bool )( list.find( v1 )!=list.end() ); + } } return err; -- 2.39.2