Skip to content

Commit 75d6904

Browse files
committed
Process "kind" parameter correctly in plot3d-file
Thanks to Tony Garnock-Jones for finding the problem.
1 parent f4849be commit 75d6904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plot-lib/plot/private/no-gui/plot3d.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
(define real-kind
192192
(cond [(eq? kind 'auto)
193193
(cond [(port? output) (error 'plot3d-file "can't detect file type from output stream")]
194-
[else (detect-image-file-type output)])]))
194+
[else (detect-image-file-type output)])]
195+
[else kind]))
195196
(case real-kind
196197
[(png jpeg xbm xpm bmp)
197198
(define bm

0 commit comments

Comments
 (0)