X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/633ecf268b2ebb1c453cf63e05e49e968092812a..5cce8340b28be2eecea1822434eeff7055840f9c:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 2e2650bfed..68e2b73bdb 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -3518,7 +3518,7 @@ void wxGenericTreeCtrl::Thaw() { wxCHECK_RET( m_freezeCount > 0, _T("thawing unfrozen tree control?") ); - if ( !--m_freezeCount ) + if ( --m_freezeCount == 0 ) { Refresh(); }