adjust the wrap-bitmap-width field to always have an inexact number

This commit is contained in:
Robby Findler 2014-10-28 16:19:50 -05:00
parent 5052e82518
commit 00a7eaca2c

View File

@ -4945,8 +4945,8 @@
(set! auto-wrap-bitmap bm)
(if auto-wrap-bitmap
(set! wrap-bitmap-width (send auto-wrap-bitmap get-width))
(set! wrap-bitmap-width 0))
(set! wrap-bitmap-width (exact->inexact (send auto-wrap-bitmap get-width)))
(set! wrap-bitmap-width 0.0))
(when (max-width . > . 0)
(set-max-width (+ max-width old-width)))