summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-11-12 20:55:14 +0100
committerRadek Doulik <rodo@novell.com>2012-11-19 18:24:33 +0100
commit787704495a615f1ea749ba80b0e218c3aae684d9 (patch)
treef3f8e4422ea95292bed4f84c8b04e790b6f8708a /oox
parent39afe720fe2c0ccaa9a806d842de0cc1f34bc106 (diff)
limit buSzPct range
Change-Id: I41411301ee131f92b9725208e53133ee0f8a6f82
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 6cf226410c80..11c5c0d8d3f6 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1070,7 +1070,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
} else {
if( nBulletRelSize && nBulletRelSize != 100 )
mpFS->singleElementNS( XML_a, XML_buSzPct,
- XML_val, IS( 1000*( (sal_Int32)nBulletRelSize ) ), FSEND );
+ XML_val, IS( std::min( 25000, std::max( 400000, 1000*( (sal_Int32)nBulletRelSize ) ) ) ), FSEND );
if( bHasFontDesc )
mpFS->singleElementNS( XML_a, XML_buFont,
XML_typeface, OUStringToOString( aFontDesc.Name, RTL_TEXTENCODING_UTF8 ).getStr(),