X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bc00e7155e50add264599856a39e0ceb2db19541..748fbf95a859df3b1b9f8b95ee8cd0cc4d205a85:/src/generic/gridctrl.cpp diff --git a/src/generic/gridctrl.cpp b/src/generic/gridctrl.cpp index a6f8f58b80..12f1c6c655 100644 --- a/src/generic/gridctrl.cpp +++ b/src/generic/gridctrl.cpp @@ -19,6 +19,9 @@ #pragma hdrstop #endif + +#if wxUSE_GRID || wxUSE_NEW_GRID + #ifndef WX_PRECOMP #include "wx/textctrl.h" #include "wx/dc.h" @@ -215,6 +218,8 @@ void wxGridCellEnumRenderer::SetParameters(const wxString& params) wxGridCellEnumEditor::wxGridCellEnumEditor(const wxString& choices) : wxGridCellChoiceEditor() { + m_startint = -1; + if (!choices.IsEmpty()) SetParameters(choices); } @@ -384,3 +389,4 @@ wxGridCellAutoWrapStringRenderer::GetBestSize(wxGrid& grid, return wxSize(width,height); } +#endif