Fix internal lock issue in snip canvas by wrapping erase+insert in an edit sequence

This commit is contained in:
Neil Toronto 2014-04-05 14:07:44 -06:00
parent 6a73b6b9ec
commit f939725950

View File

@ -41,8 +41,10 @@
(raise-type-error 'set-snip "snip%" s))
(set! snip s)
(send text set-writable #t)
(send text begin-edit-sequence #f)
(send text erase)
(send text insert snip)
(send text end-edit-sequence)
(send text set-writable #f))
(super-new [parent parent]