oox/source/drawingml/fillproperties.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit ba6da9545764f2545313ba085ed4a096165180fd Author: Matúš Kukan <matus.ku...@collabora.com> Date: Fri Jul 18 10:04:09 2014 +0200 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 diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index a0c439d..4a7227f 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; @@ -557,7 +558,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
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits