Applied ticket #1230 (patch to SetColFormatCustom), setting both editor and

renderer when selecting a specific format instead of just the renderer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2008-06-15 12:42:36 +00:00
parent 949750de63
commit 7d2c43731b

View File

@ -10018,6 +10018,8 @@ void wxGrid::SetColFormatCustom(int col, const wxString& typeName)
attr = new wxGridCellAttr;
wxGridCellRenderer *renderer = GetDefaultRendererForType(typeName);
attr->SetRenderer(renderer);
wxGridCellEditor *editor = GetDefaultEditorForType(typeName);
attr->SetEditor(editor);
SetColAttr(col, attr);