Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
279ad1be
Commit
279ad1be
authored
May 18, 2014
by
Luke Campagnola
Browse files
Fixed ViewBox error when accessing zoom history before having zoomed.
parent
ab411012
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyqtgraph/graphicsItems/ViewBox/ViewBox.py
View file @
279ad1be
...
...
@@ -1312,6 +1312,8 @@ class ViewBox(GraphicsWidget):
ev
.
ignore
()
def
scaleHistory
(
self
,
d
):
if
len
(
self
.
axHistory
)
==
0
:
return
ptr
=
max
(
0
,
min
(
len
(
self
.
axHistory
)
-
1
,
self
.
axHistoryPointer
+
d
))
if
ptr
!=
self
.
axHistoryPointer
:
self
.
axHistoryPointer
=
ptr
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment