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

--- Comment #8 from Martin <[email protected]> ---
Now going back to the original issue - why aren't the "with patch" numbers
being printed out to three decimal places?

One possible explanation is that they are, but the trailing zeros are omitted -
and that there are always trailing zeros!

There's code for omitting trailing zeros in appendFixedInt() (sign-posted by
the comment) and the equivalent in appendDouble() is the "&& nFrac" in the
final for-loop.

This would mean that the values sent for output have already been rounded up
(or more likely truncated) to the nearest 1/20. This could be due to
lcl_convert() used in appendPoint().

I'm currently trying to figure out what's going on with those calls, it looks
quite complicated. Any pointers would be appreciated. I can sort of see why the
numbers would be rounded to 1/10 (via nDPIX = nDPIY = 720 plus the fact that 1
inch = 72 pt), but can't find the factor of 2.

If I manage to figure this out, I will try to write a patch addressing all of
this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to