diff --git a/src/osx/dataview_osx.cpp b/src/osx/dataview_osx.cpp index 60e57b70f2..0bee2da4fa 100644 --- a/src/osx/dataview_osx.cpp +++ b/src/osx/dataview_osx.cpp @@ -365,6 +365,10 @@ bool wxDataViewCtrl::Create(wxWindow *parent, const wxValidator& validator, const wxString& name) { + // Remove wxVSCROLL and wxHSCROLL from the style, since the dataview panel has scrollbars + // by default, and wxControl::Create trys to make some but crashes in the process + style &= ~(wxVSCROLL | wxHSCROLL); + DontCreatePeer(); if (!(wxControl::Create(parent,id,pos,size,style,validator,name))) return false;