call Thaw() instead of DoThaw() so frozen status will be properly updated, and use a loop in case window has been frozen more than once

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2012-09-25 18:01:04 +00:00
parent 6be306d4dc
commit cec92136b4

View File

@@ -2371,8 +2371,8 @@ wxWindowGTK::~wxWindowGTK()
// avoid problem with GTK+ 2.18 where a frozen window causes the whole
// TLW to be frozen, and if the window is then destroyed, nothing ever
// gets painted again
if (IsFrozen())
DoThaw();
while (IsFrozen())
Thaw();
if (m_widget)
{