Salome HOME
Fix for bug 10438: Crash during Explode on Blocks operation (Global selection on...
[modules/gui.git] / src / Qtx / QtxStdOperations.cxx
index 69a7453c9b2f33fecc87f136d00d59a9a46aad12..f6c34bd759057f99aa1dd658d3b2441bc41135e4 100644 (file)
@@ -777,9 +777,9 @@ QtxParser::Error QtxSets::calculate( const QString& op, QtxValue& v1, QtxValue&
                 remove( aNewList, v2.toList() );
 
                 if( op=="=" )
-                    set( v1, aNewList.isEmpty() );
+                    set( v1, aNewList.isEmpty() && v1.toList().count()==v2.toList().count() );
                 else if( op=="<>" || op=="!=" )
-                    set( v1, !aNewList.isEmpty() );
+                    set( v1, !aNewList.isEmpty() || v1.toList().count()!=v2.toList().count() );
                 else
                     v1 = aNewList;
             }