mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Merge pull request #1055 from RobinD42/fix-issue1013
Fix tickmarks when there is a negative bounds
(cherry picked from commit 24a455acb3)
This commit is contained in:
@@ -155,6 +155,10 @@ Changes in this release include the following:
|
||||
|
||||
* Performance update for `wx.lib.agw.customtreectrl` (#1049)
|
||||
|
||||
* Fix drawing of ticks in wx.lib.agw.speedmeter when there are negative bounds
|
||||
values. (#1013)
|
||||
|
||||
|
||||
|
||||
|
||||
4.0.3 "The show must go on. (Die show-stoppers! Die!)"
|
||||
|
||||
@@ -971,10 +971,11 @@ class SpeedMeter(BufferedWindow):
|
||||
|
||||
for tcount in range(ticknum):
|
||||
if direction == "Advance":
|
||||
oldinterval = (oldinterval + spacing) - start
|
||||
stint = oldinterval
|
||||
oldinterval = (oldinterval + spacing)
|
||||
stint = oldinterval - start
|
||||
else:
|
||||
oldinterval = start + (oldinterval + spacing)
|
||||
#oldinterval = start + (oldinterval + spacing)
|
||||
oldinterval = (oldinterval + spacing)
|
||||
stint = end - oldinterval
|
||||
|
||||
angle = (stint/float(span))*(startangle-endangle) - startangle
|
||||
|
||||
Reference in New Issue
Block a user