]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/listbox.cpp
Further tweaks to accessibility code
[wxWidgets.git] / samples / widgets / listbox.cpp
index fa0f8be64451f612df17367a89afcd03cd100156..9b074e4c912ffe2bdbed1d6025af00d6da8c15fc 100644 (file)
@@ -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;
     }