]> git.saurik.com Git - wxWidgets.git/commitdiff
correct wrong assert checking for default button flags consistency (closes #10906)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Jun 2009 23:16:22 +0000 (23:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Jun 2009 23:16:22 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msgdlg.h

index 8e0e0a9bb74fb3d779e9bc79ca2700c65f2bf025..3e52b9c68dd4084def1d0f0b75072025e8743ee2 100644 (file)
@@ -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;