From: Stefan Neis Date: Sun, 15 Jun 2008 12:42:36 +0000 (+0000) Subject: Applied ticket #1230 (patch to SetColFormatCustom), setting both editor and X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d2c43731bd3d78b2d67c63ac48d7d65de092365?ds=sidebyside 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 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index fc5c4e9a87..33f31d9f2a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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);