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

original commit: 00a7eaca2c1fd527ebcf148151178bf208c37d0d
This commit is contained in:
Robby Findler 2014-10-28 16:19:50 -05:00
parent 479772fbbb
commit 7f29cd1273

View File

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