oops, restored the postpone-redraw-if-dirty test which was somehow left out

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-07-11 13:40:32 +00:00
parent b84839aea9
commit 1e4d446b99

View File

@@ -41,6 +41,10 @@
... we have it ourselves ...
else
line->GetFoo();
=> done
5. attributes support: we need OnGetItemAttr() as well!
*/
// ============================================================================
@@ -54,7 +58,7 @@
#ifdef __GNUG__
#pragma implementation "listctrl.h"
#pragma implementation "listctrlbase.h"
#endif
#endif
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@ -2417,6 +2421,12 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
return;
}
if ( m_dirty )
{
// delay the repainting until we calculate all the items positions
return;
}
PrepareDC( dc );
int dev_x, dev_y;