fix reference counting problems with wxGridCellWithAttr (re-#9567)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -360,6 +360,12 @@ GridFrame::GridFrame()
|
||||
grid->SetCellAlignment(7, 1, wxALIGN_CENTRE, wxALIGN_CENTRE);
|
||||
grid->SetCellValue(7, 1, _T("Big box!"));
|
||||
|
||||
// this does exactly nothing except testing that SetAttr() handles NULL
|
||||
// attributes and does reference counting correctly
|
||||
grid->SetAttr(11, 11, NULL);
|
||||
grid->SetAttr(11, 11, new wxGridCellAttr);
|
||||
grid->SetAttr(11, 11, NULL);
|
||||
|
||||
wxBoxSizer *topSizer = new wxBoxSizer( wxVERTICAL );
|
||||
topSizer->Add( grid,
|
||||
1,
|
||||
|
Reference in New Issue
Block a user