]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/object.h
fixed bug with the caret positioning after SetValue() introduced by the last commit
[wxWidgets.git] / include / wx / object.h
index 93d89717b4af4f306bb13a0cf9856583fe006e3b..69e379684232b87b000d1425aa391f1527305153 100644 (file)
@@ -171,7 +171,7 @@ wxObject* WXDLLEXPORT_CTORFN wxConstructorFor##name(void) \
 
 // to be replaced by dynamic_cast<> in the future
 #define wxDynamicCast(obj, className) \
-    (className *) wxCheckDynamicCast((obj), &className::sm_class##className)
+    (className *) wxCheckDynamicCast((wxObject*)(obj), &className::sm_class##className)
 
 // The 'this' pointer is always true, so use this version to cast the this
 // pointer and avoid compiler warnings.