avoid path->string on #f

svn: r3062
This commit is contained in:
Eli Barzilay 2006-05-25 17:51:25 +00:00
parent b690f6cea1
commit 6f6516e9db

View File

@ -561,7 +561,7 @@
(maybe-save)
(let ([f (if (not (null? file))
(car file)
(path->string (get-file "Open" gcalc-frame)))])
(cond [(get-file "Open" gcalc-frame) => path->string] [else #f]))])
(when f
(if (file-exists? f)
(with-input-from-file f