From e0eecd1d18fc353407da933e1abddf31ddc805d1 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sun, 12 Sep 2010 14:16:57 +0300 Subject: [PATCH] Small fix that prevents flickering of fitting view scrollbars when those are present - happens on msw --- gui/builtinViewColumns/display.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/builtinViewColumns/display.py b/gui/builtinViewColumns/display.py index 1cb942808..95b082b1a 100644 --- a/gui/builtinViewColumns/display.py +++ b/gui/builtinViewColumns/display.py @@ -83,6 +83,9 @@ class Display(wx.ListCtrl): def populate(self, stuff): selection = [] + + self.Freeze() + sel = self.GetFirstSelected() while sel != -1: selection.append(sel) @@ -108,6 +111,8 @@ class Display(wx.ListCtrl): for sel in selection: self.Select(sel) + self.Thaw() + def getColumn(self, point): x = point[0] total = 0