]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/textctrl.cpp
Further tweaks to accessibility code
[wxWidgets.git] / samples / widgets / textctrl.cpp
index 9fc4ead7ebfe0f72dc0befeaa6fcac94c05a8763..0832b9a65d5084509797e5124f0f788542e20810 100644 (file)
@@ -542,7 +542,7 @@ void TextWidgetsPage::CreateText()
     {
         valueOld = m_text->GetValue();
 
-        m_sizerText->Remove(m_text);
+        m_sizerText->Detach( m_text );
         delete m_text;
     }
     else