X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c61716c7912d7e6786beb21be2ba9bf99c65acb..2aefc52854807189d44dfe6a9513b99932cabc51:/samples/widgets/listbox.cpp diff --git a/samples/widgets/listbox.cpp b/samples/widgets/listbox.cpp index fa0f8be644..9b074e4c91 100644 --- a/samples/widgets/listbox.cpp +++ b/samples/widgets/listbox.cpp @@ -351,7 +351,7 @@ void ListboxWidgetsPage::CreateLbox() items.Add(m_lbox->GetString(n)); } - m_sizerLbox->Remove(m_lbox); + m_sizerLbox->Detach( m_lbox ); delete m_lbox; }