summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/drawingml/fillproperties.cxx3
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