Commit 279ad1be authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Fixed ViewBox error when accessing zoom history before having zoomed.

parent ab411012
......@@ -1312,6 +1312,8 @@ class ViewBox(GraphicsWidget):
def scaleHistory(self, d):
if len(self.axHistory) == 0:
ptr = max(0, min(len(self.axHistory)-1, self.axHistoryPointer+d))
if ptr != self.axHistoryPointer:
self.axHistoryPointer = ptr
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment