Fix wxDataViewCtrl compilation when wxUSE_SPINCTRL==0

Just don't define wxDataViewSpinRenderer in this case.
This commit is contained in:
Andreas Falkenhahn
2015-10-11 17:07:15 +02:00
committed by Vadim Zeitlin
parent 154ebfd1d9
commit 9dd48eab61
2 changed files with 7 additions and 0 deletions

View File

@@ -358,6 +358,8 @@ private:
#error "unknown native wxDataViewCtrl implementation"
#endif
#if wxUSE_SPINCTRL
// ----------------------------------------------------------------------------
// wxDataViewSpinRenderer
// ----------------------------------------------------------------------------
@@ -381,6 +383,8 @@ private:
long m_min,m_max;
};
#endif // wxUSE_SPINCTRL
#if defined(wxHAS_GENERIC_DATAVIEWCTRL) || defined(__WXOSX_CARBON__)
// ----------------------------------------------------------------------------

View File

@@ -1569,6 +1569,7 @@ wxDEFINE_EVENT( wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE, wxDataViewEvent );
wxDEFINE_EVENT( wxEVT_DATAVIEW_ITEM_DROP, wxDataViewEvent );
#if wxUSE_SPINCTRL
// -------------------------------------
// wxDataViewSpinRenderer
@@ -1638,6 +1639,8 @@ bool wxDataViewSpinRenderer::GetValue( wxVariant &value ) const
return true;
}
#endif // wxUSE_SPINCTRL
// -------------------------------------
// wxDataViewChoiceRenderer
// -------------------------------------