X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59ddac01094fa71996012466638d4e2d965362ae..c60ba92d097bd49e204f140f22ade84a1b6bc38c:/src/generic/grid.cpp 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);