From 7844be587ebe75a80de6db1d4a09fff28f57e452 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 1 Jun 2014 16:30:33 +0000 Subject: [PATCH] Don't check for model in wxDataViewCtrl::InsertColumn() in wxOSX. This isn't done in neither generic nor the GTK versions and prevents from inserting the columns into the control before associating a model with it. Closes #16257. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/dataview_osx.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osx/dataview_osx.cpp b/src/osx/dataview_osx.cpp index d058a38b70..332d3750dc 100644 --- a/src/osx/dataview_osx.cpp +++ b/src/osx/dataview_osx.cpp @@ -434,8 +434,6 @@ bool wxDataViewCtrl::InsertColumn(unsigned int pos, wxDataViewColumn* columnPtr) wxCHECK_MSG(dataViewWidgetPtr != NULL, false,"Pointer to native control must not be NULL."); wxCHECK_MSG(columnPtr != NULL, false,"Column pointer must not be NULL."); wxCHECK_MSG(columnPtr->GetRenderer() != NULL, false,"Column does not have a renderer."); - wxCHECK_MSG(GetModel() != NULL, false,"No model associated with control."); - wxCHECK_MSG(columnPtr->GetModelColumn() < GetModel()->GetColumnCount(),false,"Column's model column has no equivalent in the associated model."); // add column to wxWidget's internal structure: if (wxDataViewCtrlBase::InsertColumn(pos,columnPtr))