fix for a bug discovered via random testing

svn: r18587
This commit is contained in:
Robby Findler 2010-03-19 20:36:39 +00:00
parent ff10493a0e
commit dbe66de3af

View File

@ -1628,7 +1628,8 @@
(->long (/ (- (+ total-height scroll-step) 1) scroll-step))) (->long (/ (- (+ total-height scroll-step) 1) scroll-step)))
(def/override (find-scroll-line [real? y]) (def/override (find-scroll-line [real? y])
(->long (/ y scroll-step))) (let ([y (max 0 y)])
(->long (/ y scroll-step))))
(def/public (set-scroll-step [real? s]) (def/public (set-scroll-step [real? s])
(unless (= scroll-step s) (unless (= scroll-step s)