]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a bug that prevented editors and renderers to be purly data type
authorRobin Dunn <robin@alldunn.com>
Tue, 12 Feb 2002 01:54:48 +0000 (01:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 12 Feb 2002 01:54:48 +0000 (01:54 +0000)
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

src/generic/grid.cpp

index 22bd89555c51ab96bc513834eaefa68cf1f0a6eb..fc1b7ced2a60aa26344aa7c9e52fbbf46f09b973 100644 (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);