From eb203ea8ad2d3fd89c2acccc7dc42e0493ac67eb Mon Sep 17 00:00:00 2001 From: einarr Date: Tue, 17 Oct 2006 10:06:27 +0000 Subject: [PATCH] Bugfix; keeping view if table size increases. --- system/plots.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/system/plots.py b/system/plots.py index 9db52aa..1ebebaa 100644 --- a/system/plots.py +++ b/system/plots.py @@ -282,9 +282,12 @@ class MainView (gtk.Notebook): ## Hide all plots that will be removed from the screen. for x in range(self._views.xsize): for y in range(self._views.ysize): - if width > x or height > y: + if width < x or height < y: self._views[x, y].set_view(None) - self._small_views.remove(self._views[x, y]) + + for x in range(self._views.xsize): + for y in range(self._views.ysize): + self._small_views.remove(self._views[x, y]) self._views.resize(width, height) self.update_small_views()