From: Vadim Zeitlin Date: Wed, 17 Jun 2009 23:16:22 +0000 (+0000) Subject: correct wrong assert checking for default button flags consistency (closes #10906) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3c9a70ddd458916bb57b28936e9e34965d7deb0b?ds=inline correct wrong assert checking for default button flags consistency (closes #10906) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msgdlg.h b/include/wx/msgdlg.h index 8e0e0a9bb7..3e52b9c68d 100644 --- a/include/wx/msgdlg.h +++ b/include/wx/msgdlg.h @@ -158,7 +158,7 @@ public: wxASSERT_MSG( !(style & wxCANCEL_DEFAULT) || (style & wxCANCEL), "wxCANCEL_DEFAULT is invalid without wxCANCEL" ); - wxASSERT_MSG( !(style & wxCANCEL_DEFAULT) || !(style & wxNO), + wxASSERT_MSG( !(style & wxCANCEL_DEFAULT) || !(style & wxNO_DEFAULT), "only one default button can be specified" ); m_dialogStyle = style;