mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Ensure there are at least 3 points in the list for DrawSpline
This commit is contained in:
@@ -522,7 +522,7 @@ class PolySpline(PolyLine):
|
||||
pen.SetCap(wx.CAP_ROUND)
|
||||
dc.SetPen(pen)
|
||||
if coord is None:
|
||||
if len(self.scaled): # bugfix for Mac OS X
|
||||
if len(self.scaled) >= 3:
|
||||
dc.DrawSpline(self.scaled)
|
||||
else:
|
||||
dc.DrawLines(coord) # draw legend line
|
||||
|
||||
Reference in New Issue
Block a user