diff options
author | Justin Luth <justin.luth@collabora.com> | 2019-10-04 14:41:19 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-10-31 08:52:38 +0100 |
commit | aaa242a33b01e87c41f19fca871cafa857fe71dd (patch) | |
tree | fe791b7ca28a66945c9efa011ebed14de5c735bc /sc/source/ui/docshell/docsh6.cxx | |
parent | ef3dabd1f814d1b005efc5d5144978c1d26a8e73 (diff) |
related tdf#99602 ww8/rtfoutput: fix incorrect rounding on subscripts
Adding .5 is a poor mans version of rounding which works fine with
unsigned numbers, but not with negative numbers. Perhaps use the
exotic round() function instead?
In addition, the font size isn't necessarily an integer,
so that should have been a float.
The result of bad rounding was losing a percentage of the subscript
every round-trip.
Change-Id: I9093f7bfcd0b87249b42562668e45480dcb59f53
Reviewed-on: https://gerrit.libreoffice.org/80218
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sc/source/ui/docshell/docsh6.cxx')
0 files changed, 0 insertions, 0 deletions