Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Plots restore current selection on set_frozen(False)

This commit is contained in:
Einar Ryeng 2006-10-12 12:58:48 +00:00
parent 3a62580125
commit 92a8a819e8
1 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,8 @@ class Plot (View):
def set_frozen(self, frozen):
"""A frozen plot will not be updated when the current selection is changed."""
self._frozen = frozen
if not frozen:
self.set_current_selection(self._current_selection)
def get_title(self):
return self.title
@ -312,6 +314,8 @@ class Plot (View):
or not self.get_property('visible') \
or self.current_dim != dim_name:
return
else:
self._current_selection = selection
self.set_current_selection(selection)