diff options
author | Radek Doulik <rodo@novell.com> | 2012-11-12 20:55:14 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2012-11-19 18:24:33 +0100 |
commit | 787704495a615f1ea749ba80b0e218c3aae684d9 (patch) | |
tree | f3f8e4422ea95292bed4f84c8b04e790b6f8708a /oox | |
parent | lo-pack-sources: use module instead of piece (diff) | |
download | core-787704495a615f1ea749ba80b0e218c3aae684d9.tar.gz core-787704495a615f1ea749ba80b0e218c3aae684d9.zip |
limit buSzPct range
Change-Id: I41411301ee131f92b9725208e53133ee0f8a6f82
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 2 |
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(), |