]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Another way to fix bug 10505, avoiding regressions of popups
authorjfa <jfa@opencascade.com>
Fri, 25 Nov 2005 14:04:38 +0000 (14:04 +0000)
committerjfa <jfa@opencascade.com>
Fri, 25 Nov 2005 14:04:38 +0000 (14:04 +0000)
src/LightApp/LightApp_DataOwner.cxx
src/SUIT/SUIT_DataOwner.cxx

index 6d01eb5fef8b85098756172a58d050748d136130..9873e2d0b870c427d78e52cfbb34853d5dc2d4f6 100644 (file)
@@ -38,12 +38,6 @@ bool
 LightApp_DataOwner
 ::isEqual( const SUIT_DataOwner& obj ) const
 {
-  const _typeinfo& ti1 = typeid( obj );
-  const _typeinfo& ti2 = typeid( *(this) );
-
-  if (ti1 != ti2)
-    return false;
-
   const LightApp_DataOwner* other = dynamic_cast<const LightApp_DataOwner*>( &obj );
 
   return other && entry() == other->entry();
index ebac9dc7f4c9caa1b56545228d933a0f01748c76..bf3191b3eb4961969fce8c935a8e50e73c0153a7 100755 (executable)
@@ -27,7 +27,7 @@ SUIT_DataOwner::~SUIT_DataOwner()
 bool operator==( const SUIT_DataOwnerPtr& p1, const SUIT_DataOwnerPtr& p2 )
 {
   if ( !p1.isNull() && !p2.isNull() )
-    return p1->isEqual( *p2 );
+    return (p1->isEqual( *p2 ) && p2->isEqual( *p1 ));
   return p1.isNull() && p2.isNull();
 }