Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

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
1 changed files with 5 additions and 2 deletions

View File

@ -282,8 +282,11 @@ 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)
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)