Salome HOME
Fix of error: if rule contains part "<string> in <set of strings>", this part was...
authorasl <asl@opencascade.com>
Thu, 9 Jun 2005 11:10:54 +0000 (11:10 +0000)
committerasl <asl@opencascade.com>
Thu, 9 Jun 2005 11:10:54 +0000 (11:10 +0000)
src/Qtx/QtxStdOperations.cxx

index c87990d3048be37a58dafcf0b7f3ed6c55bdef6a..5301bfef8fd7d7d35d97b1d19f4fa045a3a1fa29 100644 (file)
@@ -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;