extract setting max length in wxGridCellTextEditor::DoCreate() and call it from wxGridCellAutoWrapStringEditor::Create() to ensure that it honours the base editor parameters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -292,12 +292,8 @@ wxGridCellAutoWrapStringEditor::Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler)
|
||||
{
|
||||
m_control = new wxTextCtrl(parent, id, wxEmptyString,
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
wxTE_MULTILINE | wxTE_RICH);
|
||||
|
||||
|
||||
wxGridCellEditor::Create(parent, id, evtHandler);
|
||||
wxGridCellTextEditor::DoCreate(parent, id, evtHandler,
|
||||
wxTE_MULTILINE | wxTE_RICH);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user