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
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user