]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/checklst/checklst.cpp
added custom icons
[wxWidgets.git] / samples / checklst / checklst.cpp
index 6a16991ec366c6377e91b74b6b6daecd4d5086b3..41c135cc712284bf283d55d8c602b99eec3f37af 100644 (file)
@@ -290,7 +290,7 @@ void CheckListBoxFrame::OnToggleSelection(wxCommandEvent& event)
 {
     wxSizer *sizer = m_panel->GetSizer();
 
-    sizer->Remove(m_pListBox);
+    sizer->Detach( m_pListBox );
     delete m_pListBox;
 
     CreateCheckListbox(event.IsChecked() ? wxLB_EXTENDED : 0);