diff --git a/src/msw/dialog.cpp b/src/msw/dialog.cpp index 413c6b4ea6..727670f33e 100644 --- a/src/msw/dialog.cpp +++ b/src/msw/dialog.cpp @@ -246,7 +246,7 @@ bool wxDialog::IsModal() const bool wxDialog::IsModalShowing() const { - return wxModalDialogs.Find(wxConstCast(this, wxDialog)) != NULL; + return !!wxModalDialogs.Find(wxConstCast(this, wxDialog)); } wxWindow *wxDialog::FindSuitableParent() const