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 ... ... we have it ourselves ...
else else
line->GetFoo(); line->GetFoo();
=> done
5. attributes support: we need OnGetItemAttr() as well!
*/ */
// ============================================================================ // ============================================================================
@@ -2417,6 +2421,12 @@ void wxListMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
return; return;
} }
if ( m_dirty )
{
// delay the repainting until we calculate all the items positions
return;
}
PrepareDC( dc ); PrepareDC( dc );
int dev_x, dev_y; int dev_x, dev_y;