From: Václav Slavík Date: Tue, 4 Mar 2008 10:05:40 +0000 (+0000) Subject: removed IsFrozen() from paint handler, no need for it there X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/03138b2753b23c990a875959f3c078d33b87be8e removed IsFrozen() from paint handler, no need for it there git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index bf34d03800..05663f5d8f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -598,10 +598,6 @@ public: m_textctrlWrapper = NULL; } - // we don't draw anything while we're frozen so we must refresh ourselves - // when we're thawed to make sure the changes are displayed correctly - virtual void DoThaw() { Refresh(); } - void OnRenameTimer(); bool OnRenameAccept(size_t itemEdit, const wxString& value); void OnRenameCancelled(size_t itemEdit); @@ -2707,7 +2703,7 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) // done (a Windows requirement). wxPaintDC dc( this ); - if ( IsEmpty() || IsFrozen() ) + if ( IsEmpty() ) { // nothing to draw or not the moment to draw it return;