From: asl Date: Thu, 9 Jun 2005 11:10:54 +0000 (+0000) Subject: Fix of error: if rule contains part " in ", this part was... X-Git-Tag: T3_0_0_a3~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b50829db650274bf6ccfad0f72993ac41f861e51;p=modules%2Fgui.git Fix of error: if rule contains part " in ", this part was false always --- 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;