Skip to content

Commit 01a049a

Browse files
authored
Fix call to ScaleEngine.autoScale
The original `QwtScaleEngine.autoScale` mutated the passed values in-place, but this was missed when the code was translated to Python, where `autoScale` returns the new values as a tuple.
1 parent 35c9fc2 commit 01a049a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ def updateAxes(self):
954954
d.isValid = False
955955
minValue = intv_i.minValue()
956956
maxValue = intv_i.maxValue()
957-
d.scaleEngine.autoScale(d.maxMajor, minValue, maxValue, stepSize)
957+
minValue, maxValue, stepSize = d.scaleEngine.autoScale(d.maxMajor, minValue, maxValue, stepSize)
958958
if not d.isValid:
959959
d.scaleDiv = d.scaleEngine.divideScale(
960960
minValue, maxValue, d.maxMajor, d.maxMinor, stepSize

0 commit comments

Comments
 (0)