]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grideditors.cpp
Use wxWindow::Refresh() instead of artificial wxPaintEvent in the test.
[wxWidgets.git] / src / generic / grideditors.cpp
index 93095852e8052cb30e32e3cbdffbaa744034912f..aee78e2fe8833dd6b88e156eec5f89beafe053aa 100644 (file)
@@ -382,9 +382,9 @@ void wxGridCellEditor::StartingClick()
 // wxGridCellTextEditor
 // ----------------------------------------------------------------------------
 
-wxGridCellTextEditor::wxGridCellTextEditor()
+wxGridCellTextEditor::wxGridCellTextEditor(size_t maxChars)
 {
-    m_maxChars = 0;
+    m_maxChars = maxChars;
 }
 
 void wxGridCellTextEditor::Create(wxWindow* parent,