]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/griddemo.cpp
added wxGenericStaticBitmap (#9608)
[wxWidgets.git] / samples / grid / griddemo.cpp
index 363fa804726154a6e31e0d0cb2669864096f9bb1..bd254bfdd4b4aea360027c24730e4a9b2db9ea54 100644 (file)
@@ -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,