From 8bb6b1af10aefeb9baf9cf3a111c072a6fc2a199 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sat, 26 Feb 2011 16:06:16 +0200 Subject: [PATCH] Removed a draw 'optimization' in PFListPane.RefreshList as it caused some problems when the pane was resized (hidden items werent updated even if it was needed as result of resizing) --- gui/PFListPane.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/PFListPane.py b/gui/PFListPane.py index c19a41065..904df8f79 100644 --- a/gui/PFListPane.py +++ b/gui/PFListPane.py @@ -148,8 +148,7 @@ class PFListPane(wx.ScrolledWindow): itemX,itemY = self._wList[i].GetPosition() self._wList[i].SetSize((cwidth, iheight)) if doRefresh == True: - if itemY >=-iheight and itemY< clientH: - self._wList[i].Refresh() + self._wList[i].Refresh() if doFocus: self.SetFocus()