Fixed a bug that prevented editors and renderers to be purly data type

dirven (IOW, if no other cell attributes have been set but the cell
has a non-string type.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-02-12 01:54:48 +00:00
parent 3b423cdd3a
commit ccd970b13b

View File

@@ -3629,9 +3629,10 @@ void wxGrid::Create()
m_cellEditCtrlEnabled = FALSE;
m_defaultCellAttr = new wxGridCellAttr(m_defaultCellAttr);
m_defaultCellAttr = new wxGridCellAttr();
// Set default cell attributes
m_defaultCellAttr->SetDefAttr(m_defaultCellAttr);
m_defaultCellAttr->SetKind(wxGridCellAttr::Default);
m_defaultCellAttr->SetFont(GetFont());
m_defaultCellAttr->SetAlignment(wxALIGN_LEFT, wxALIGN_TOP);