]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
fixed SetUserScale() calls to use correct scale on Y axis
[wxWidgets.git] / 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()));
 }