Bugfix; keeping view if table size increases.

This commit is contained in:
Einar Ryeng 2006-10-17 10:06:27 +00:00
parent 9162deabac
commit eb203ea8ad

View File

@ -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()