diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-18 10:04:09 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-18 15:12:45 +0000 |
commit | 9451e52b449210a83502b337c6fcc0c240daa576 (patch) | |
tree | c40707583c96cdd5a06b1c4c965f1aab8ffa818f /oox/source/drawingml | |
parent | 76a4eee58830b7faf4fa0a89e82df36e352d5b06 (diff) |
use rtl::math::round here to get the same number on 32/64bit platforms
This fixes sd_import_tests where 100*0.35 was 34 on 32bit platform.
Change-Id: I45705326e91892beb814bd94e074b0a652709768
(cherry picked from commit ba6da9545764f2545313ba085ed4a096165180fd)
Reviewed-on: https://gerrit.libreoffice.org/10385
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r-- | oox/source/drawingml/fillproperties.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 89938caf1fa0..330054dc4f72 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -37,6 +37,7 @@ #include "oox/drawingml/drawingmltypes.hxx" #include "oox/drawingml/shapepropertymap.hxx" #include "oox/token/tokens.hxx" +#include <rtl/math.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::drawing; @@ -568,7 +569,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, if( aEndColor.hasTransparency() ) nEndTrans = aEndColor.getTransparency()*255/100; - aGradient.Border = 100*nBorder; + aGradient.Border = rtl::math::round(100*nBorder); } // push gradient or named gradient to property map |