mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-03-17 06:00:09 +01:00
Fix tickmarks when there is a negative bounds
This commit is contained in:
@@ -126,6 +126,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