From: Kevin Ollivier Date: Mon, 25 Dec 2006 19:28:11 +0000 (+0000) Subject: Stop crash when wxVSCROLL is specified for native OS X wxListCtrl. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e0329d247601bcd5a65827cb398e522707bb8abb?ds=inline Stop crash when wxVSCROLL is specified for native OS X wxListCtrl. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index e761dc6e48..0ee2e55dc8 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -699,8 +699,7 @@ bool wxListCtrl::Create(wxWindow *parent, else { m_macIsUserPane = false; - - if ( !wxWindow::Create(parent, id, pos, size, style, name) ) + if ( !wxWindow::Create(parent, id, pos, size, style & ~(wxHSCROLL | wxVSCROLL), name) ) return false; m_dbImpl = new wxMacDataBrowserListCtrlControl( this, pos, size, style ); m_peer = m_dbImpl; @@ -2421,7 +2420,7 @@ wxMacDataBrowserListCtrlControl::wxMacDataBrowserListCtrlControl( wxWindow *peer } verify_noerr( SetHiliteStyle(kDataBrowserTableViewFillHilite ) ); - err = SetHasScrollBars( (style & wxHSCROLL) != 0 , true ); + err = SetHasScrollBars( (style & wxHSCROLL) != 0 , (style & wxVSCROLL) != 0 ); } pascal Boolean wxMacDataBrowserListCtrlControl::DataBrowserEditTextProc(