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:
@@ -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!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -54,7 +58,7 @@
|
|||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation "listctrl.h"
|
#pragma implementation "listctrl.h"
|
||||||
#pragma implementation "listctrlbase.h"
|
#pragma implementation "listctrlbase.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
@@ -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;
|
||||||
|
Reference in New Issue
Block a user