Changeset 56230

Show
Ignore:
Timestamp:
10/11/08 08:54:14 (6 weeks ago)
Author:
FM
Message:

Act as wxMSW and make an assert fail, if the user forgot to give a "type flag" (previously it assumed wxLC_LIST type flag).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/src/generic/listctrl.cpp

    r55535 r56230  
    50465046    m_headerHeight = 0; 
    50475047 
    5048     if ( !(style & wxLC_MASK_TYPE) ) 
    5049     { 
    5050         style = style | wxLC_LIST; 
    5051     } 
     5048    // just like in other ports, an assert will fail if the user doesn't give any type style: 
     5049    wxASSERT_MSG( !(style & wxLC_MASK_TYPE), 
     5050                  _T("wxListCtrl style should have exactly one mode bit set") ); 
    50525051 
    50535052    if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) )