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-20 20:25:25 +0100
commit415ac5f59ee7a5838874070a3d41af69584e7a3f (patch)
tree220cf777ac241e4feae041b4688a578c2a67e34c /oox
parent4246bc9e5e51e24818f3a159123b5f10f4a5a660 (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 080d3ec14a2f..c4adc33e2eef 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1079,7 +1079,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(),