X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/932b55d0d60650d8337e1343105a1e98df268127..c09615b8ed48b6203e7c239fd74d1799e34cfe79:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 3e38c3085c..d1cd40d895 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -575,7 +575,11 @@ void wxGridCellTextEditor::Create(wxWindow* parent, #endif ); - // TODO: use m_maxChars + // set max length allowed in the textctrl, if the parameter was set + if (m_maxChars != 0) + { + ((wxTextCtrl*)m_control)->SetMaxLength(m_maxChars); + } wxGridCellEditor::Create(parent, id, evtHandler); }