added check for rings with too-small radii
svn: r6160
This commit is contained in:
parent
7537babe99
commit
e63ea001b1
|
@ -96,12 +96,13 @@
|
|||
(match-lambda
|
||||
[(? undefined?) (void)]
|
||||
[($ ring center radius color)
|
||||
((draw-ellipse pixmap)
|
||||
(make-posn (- (posn-x center) radius)
|
||||
(- (posn-y center) radius))
|
||||
(* 2 radius)
|
||||
(* 2 radius)
|
||||
color)]
|
||||
(when (> radius 2)
|
||||
((draw-ellipse pixmap)
|
||||
(make-posn (- (posn-x center) radius)
|
||||
(- (posn-y center) radius))
|
||||
(* 2 radius)
|
||||
(* 2 radius)
|
||||
color))]
|
||||
[($ solid-ellipse ul w h color)
|
||||
((draw-solid-ellipse pixmap) ul w h color)]
|
||||
[($ graph-string pos text color) ((draw-string pixmap) pos text color)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user