]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
rename wxHeaderCtrl DRAG events into RESIZE ones as we're also going to have column...
[wxWidgets.git] / src / generic / listctrl.cpp
index 55d57648271adc83b9f993ffca0e49cf54ca41da..c42fded26c26be02ad3ffdb22c60a67042aeb2b8 100644 (file)
@@ -5046,7 +5046,7 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
     m_headerHeight = 0;
 
     // just like in other ports, an assert will fail if the user doesn't give any type style:
-    wxASSERT_MSG( !(style & wxLC_MASK_TYPE),
+    wxASSERT_MSG( (style & wxLC_MASK_TYPE),
                   _T("wxListCtrl style should have exactly one mode bit set") );
 
     if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) )