X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c23edb1b71ea45178dd9f4628ab35c3d88d2f8ec..a9ed8caa09bc542a2ad9f752c0a6ca63c7119747:/src/common/listctrlcmn.cpp diff --git a/src/common/listctrlcmn.cpp b/src/common/listctrlcmn.cpp index b19ed6e38c..5edcf420f1 100644 --- a/src/common/listctrlcmn.cpp +++ b/src/common/listctrlcmn.cpp @@ -153,7 +153,9 @@ wxListCtrlBase::InsertColumn(long col, wxListItem item; item.m_mask = wxLIST_MASK_TEXT | wxLIST_MASK_FORMAT; item.m_text = heading; - if ( width > -1 ) + if ( width >= 0 + || width == wxLIST_AUTOSIZE + || width == wxLIST_AUTOSIZE_USEHEADER ) { item.m_mask |= wxLIST_MASK_WIDTH; item.m_width = width;