fix pasteboard rubber-band drawing

svn: r14820

original commit: cee5d694ad4f35db3a40175f1c7532e59ffc40b5
This commit is contained in:
Matthew Flatt 2009-05-14 19:37:08 +00:00
parent 9702e4e3b4
commit e020e87698

View File

@ -166,8 +166,8 @@
(define/private (rubber-band x y w h)
(when (and s-admin
(positive? w)
(positive? h))
(not (zero? w))
(not (zero? h)))
(let-values ([(x w)
(if (w . < . 0)
(values (+ x w) (- w))