Skip to content

Commit

Permalink
Make sure that changes in externally defined links triggers an update…
Browse files Browse the repository at this point in the history
… of the reference data in the image viewer
  • Loading branch information
astrofrog committed Dec 8, 2022
1 parent 219643d commit 37cec6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glue/viewers/image/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ def add_data(self, data):
self._set_wcs()
return result

def _update_data(self, *args, **kwargs):
super()._update_data(*args, **kwargs)
self.state._reference_data_changed(force=True)

def _on_slice_change(self, event=None):
if self._changing_slice_requires_wcs_update:
self._set_wcs(relim=False)
Expand Down

0 comments on commit 37cec6f

Please sign in to comment.