]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied ticket #1230 (patch to SetColFormatCustom), setting both editor and
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 15 Jun 2008 12:42:36 +0000 (12:42 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 15 Jun 2008 12:42:36 +0000 (12:42 +0000)
        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

src/generic/grid.cpp

index fc5c4e9a87c4b14e738ad4997d2fd8d7201c9b39..33f31d9f2a8a96cf56c57e88c96a290585da7b4d 100644 (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);