X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72383a729f0b68e6527f9652d87fa98b20379724..2aefc52854807189d44dfe6a9513b99932cabc51:/samples/widgets/textctrl.cpp diff --git a/samples/widgets/textctrl.cpp b/samples/widgets/textctrl.cpp index 9fc4ead7eb..0832b9a65d 100644 --- a/samples/widgets/textctrl.cpp +++ b/samples/widgets/textctrl.cpp @@ -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