]> git.saurik.com Git - wxWidgets.git/commitdiff
fix deleting a frozen multi-line wxTextCtrl, see #13543
authorPaul Cornett <paulcor@bullseye.com>
Tue, 25 Sep 2012 17:55:00 +0000 (17:55 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 25 Sep 2012 17:55:00 +0000 (17:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp

index 15c7981c77fb51eb8d366e5c0f6d4cbfc61de96d..ae00662c747d5f2a022123aa8ef8a5580b1ae741 100644 (file)
@@ -613,6 +613,11 @@ void wxTextCtrl::Init()
 
 wxTextCtrl::~wxTextCtrl()
 {
+    // this is also done by wxWindowGTK dtor, but has to be done here so our
+    // DoThaw() override is called
+    while (IsFrozen())
+        Thaw();
+
     if (m_anonymousMarkList)
         g_slist_free(m_anonymousMarkList);
 }