X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6b2edfc836c8867cb868e73d35f36a6e68f943..4e79262f789e5fbc41f2eae43311588cf0a72be3:/src/common/variant.cpp diff --git a/src/common/variant.cpp b/src/common/variant.cpp index b71f67801d..42c9742966 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -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())); }