]> git.saurik.com Git - wxWidgets.git/commitdiff
oops, restored the postpone-redraw-if-dirty test which was somehow left out
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2001 13:40:32 +0000 (13:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2001 13:40:32 +0000 (13:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 84a4fe9b12e8b2afca285d22eb12ee1d58e866d0..256271c2fdce0c4c67bdecc9ce6769de2a5206d7 100644 (file)
             ... 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;