Kaydet (Commit) 78770449 authored tarafından Radek Doulik's avatar Radek Doulik

limit buSzPct range

Change-Id: I41411301ee131f92b9725208e53133ee0f8a6f82
üst 39afe720
...@@ -1070,7 +1070,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa ...@@ -1070,7 +1070,7 @@ void DrawingML::WriteParagraphNumbering( Reference< XPropertySet > rXPropSet, sa
} else { } else {
if( nBulletRelSize && nBulletRelSize != 100 ) if( nBulletRelSize && nBulletRelSize != 100 )
mpFS->singleElementNS( XML_a, XML_buSzPct, 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 ) if( bHasFontDesc )
mpFS->singleElementNS( XML_a, XML_buFont, mpFS->singleElementNS( XML_a, XML_buFont,
XML_typeface, OUStringToOString( aFontDesc.Name, RTL_TEXTENCODING_UTF8 ).getStr(), XML_typeface, OUStringToOString( aFontDesc.Name, RTL_TEXTENCODING_UTF8 ).getStr(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment