]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
attempt to fix compilation for old imagehlp.h header
[wxWidgets.git] / src / msw / dialog.cpp
index 698b38d7cb0cbf949bfd3c2dddd3e9a9fe98b9ed..8c5390cc5ce90cc695ba1a4ece89686352ebb382 100644 (file)
@@ -191,7 +191,7 @@ bool wxDialog::IsModal() const
 
 bool wxDialog::IsModalShowing() const
 {
-    return wxModalDialogs.Find((wxDialog *)this); // const_cast
+    return wxModalDialogs.Find(wxConstCast(this, wxDialog)) != NULL;
 }
 
 wxWindow *wxDialog::FindSuitableParent() const