]> git.saurik.com Git - wxWidgets.git/commitdiff
Ticket #1032 wxVariant::operator==(wxVariant& variant) has bad bug
authorRobert Roebling <robert@roebling.de>
Fri, 13 Jun 2008 19:23:45 +0000 (19:23 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 13 Jun 2008 19:23:45 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/variant.cpp

index b71f67801d286d0520a55e838fc5ababd0fe0cb9..42c9742966a9e51bd8f1c01c5caf0aa2cc5effd0 100644 (file)
@@ -122,6 +122,9 @@ bool wxVariant::operator== (const wxVariant& variant) const
     if (IsNull() || variant.IsNull())
         return (IsNull() == variant.IsNull());
 
+    if (GetType() != variant.GetType())
+        return false;
+
     return (GetData()->Eq(* variant.GetData()));
 }