Kaydet (Commit) ba6da954 authored tarafından Matúš Kukan's avatar Matúš Kukan

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
üst a5f9fb72
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "oox/drawingml/drawingmltypes.hxx" #include "oox/drawingml/drawingmltypes.hxx"
#include "oox/drawingml/shapepropertymap.hxx" #include "oox/drawingml/shapepropertymap.hxx"
#include "oox/token/tokens.hxx" #include "oox/token/tokens.hxx"
#include <rtl/math.hxx>
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::drawing; using namespace ::com::sun::star::drawing;
...@@ -557,7 +558,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap, ...@@ -557,7 +558,7 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
if( aEndColor.hasTransparency() ) if( aEndColor.hasTransparency() )
nEndTrans = aEndColor.getTransparency()*255/100; nEndTrans = aEndColor.getTransparency()*255/100;
aGradient.Border = 100*nBorder; aGradient.Border = rtl::math::round(100*nBorder);
} }
// push gradient or named gradient to property map // push gradient or named gradient to property map
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment