Skip to content

Commit

Permalink
BUG: Not all viewers have get_limits
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Dec 17, 2024
1 parent 629fa62 commit c75aa3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jdaviz/core/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class _BaseZoomHistory:
# Mixin for custom zoom tools to be able to save their previous zoom state
# which is then used by the PrevZoom tool
def save_prev_zoom(self):
self.viewer._prev_limits = self.viewer.get_limits()
if hasattr(self.viewer, "get_limits"):
self.viewer._prev_limits = self.viewer.get_limits()


class _MatchedZoomMixin:
Expand Down

0 comments on commit c75aa3f

Please sign in to comment.