File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
plot-gui-lib/plot/private/gui Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 198198 (define the-overlay-renderers #f )
199199
200200 (define/public (set-overlay-renderers renderers)
201- (set! the-overlay-renderers renderers)
201+ (set! the-overlay-renderers (flatten renderers) )
202202 (refresh))
203203
204204 (define (draw-overlay-renderers dc x y left top right bottom)
Original file line number Diff line number Diff line change 66;; test exists to ensure that the overlay plot area is created at least once
77;; during the testing process, and any initialization problems are caught
88;; early.
9+ ;;
10+ ;; An additional bug was found where the `set-overlay-renderers` would only
11+ ;; accept a flat list of renderers instead of a renderer tree as advertised by
12+ ;; the method contract -- this unit tests also verifies that
13+ ;; `set-overlay-renderers` does in fact accept renderer trees.
914
1015(define snip-overlay-renderers
1116 (test-suite
3439 (check-not-exn
3540 (lambda ()
3641 ;; The 2d-plot-area% for the overlay area is created on-demand when
37- ;; overlay renderers are present
38- (send snip set-overlay-renderers (list (function cos -3 3 )))
42+ ;; overlay renderers are present. Also the overlay renderers are a
43+ ;; renderer tree (nested lists) to ensure that these are accepted by
44+ ;; the method.
45+ (send snip set-overlay-renderers
46+ (list (function cos -3 3 ) (list (vrule -1 ) (vrule 1 ))))
3947 (send snip draw dc 0 0 0 0 10 10 0 0 'no-caret )))
4048 (send tl show #f )))))
4149
You can’t perform that action at this time.
0 commit comments