added error check

svn: r1454
This commit is contained in:
Robby Findler 2005-12-01 04:09:33 +00:00
parent 23347d028a
commit 3d570f8d32

View File

@ -233,6 +233,7 @@
(define (update-frame pict)
(unless the-frame (error 'update SEQUENCE-ERROR))
(check-result 'update (lambda (x) (beg:image? x)) "image" pict)
(send txt begin-edit-sequence)
(send txt lock #f)
(send txt delete 0 (send txt last-position) #f)