tdf#145158: pre-multiply the value by factor before conversion
commitd55b2631342bc7babf3709f2f83e0e502ebe4014
authorMike Kaganski <mike.kaganski@collabora.com>
Tue, 9 Nov 2021 06:22:43 +0000 (9 09:22 +0300)
committerMike Kaganski <mike.kaganski@collabora.com>
Tue, 9 Nov 2021 07:43:03 +0000 (9 08:43 +0100)
treee2d895411ab0409fa7a481652e0f0c7a24983cad
parentb3c6b3a274b4c89d3572010794897c65b26571aa
tdf#145158: pre-multiply the value by factor before conversion

Otherwise it is rounded before multiplying. Prior to the regressing
commit cfff893b9c82843a90aac4ecdb3a3936721b74a0, it was calculating
in twips, and was only converted to points by dividing by 20 in the
end, which allowed to keep some precision.

Change-Id: I142371dc630584f3fe64b5bfd5b592d46226ce32
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124895
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
svtools/source/misc/unitconv.cxx