X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80ce465c64d6f250e26cd69e62671a189302e897..e9e8b38179b147dd04f5c19af7e56a94342e93a7:/include/wx/osx/dataview.h?ds=sidebyside diff --git a/include/wx/osx/dataview.h b/include/wx/osx/dataview.h index 34e114a5a2..ae68663599 100644 --- a/include/wx/osx/dataview.h +++ b/include/wx/osx/dataview.h @@ -95,8 +95,8 @@ private: m_flags = flags & ~wxDATAVIEW_COL_HIDDEN; // TODO m_maxWidth = 30000; m_minWidth = 0; - m_width = width >= 0 ? width : wxDVC_DEFAULT_WIDTH; m_alignment = align; + SetWidth(width); } bool m_ascending; // sorting order