From: Robin Dunn Date: Tue, 12 Feb 2002 01:54:48 +0000 (+0000) Subject: Fixed a bug that prevented editors and renderers to be purly data type X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ccd970b13b43a0ffa7fae9146c9c3cf4264dfc4b 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 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 22bd89555c..fc1b7ced2a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -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);