]> git.saurik.com Git - wxWidgets.git/commitdiff
removing condition that is always true anyway (unsigned>=0)
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 Mar 2011 13:15:16 +0000 (13:15 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 Mar 2011 13:15:16 +0000 (13:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/dataview_osx.cpp

index 199cd2e74a8540e6431b094fc9f7f92d4bc7cafe..6a15bd3aeb2febeeaa320e52d5e207d976635db8 100644 (file)
@@ -407,8 +407,7 @@ bool wxDataViewCtrl::InsertColumn(unsigned int pos, wxDataViewColumn* columnPtr)
   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 != 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() >= 0) &&
-              (columnPtr->GetModelColumn() < GetModel()->GetColumnCount()),false,"Column's model column has no equivalent in the associated model.");
+  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))
 
  // add column to wxWidget's internal structure:
   if (wxDataViewCtrlBase::InsertColumn(pos,columnPtr))