https://bugs.documentfoundation.org/show_bug.cgi?id=160786

--- Comment #11 from Jonathan Clark <[email protected]> ---
The root cause for this bug is accumulated arithmetic error in
ScDrawStringsVars::RepeatToFill(). The VCL code change linked above is working
correctly.

The example document uses a custom format code containing a repeat character
(in this case, the space character). To determine how many copies of the repeat
character to insert, Calc measures the integer width of a string containing
only that repeat character, then divides the width of the remaining space by
that width.

This approach is, unfortunately, not ideal. Characters in strings may not have
integer widths, and with features like kerning and contextual alternatives, the
widths may not even be uniform within the same string. As seen here, the
resulting error can be significant.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to