From 7a90044df279e1ec2336e7c398fa938a6fa3ad56 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Thu, 6 Sep 2012 11:41:07 +0000 Subject: #120650# truncate mis-sized bullet sizes to useful values Patch by: Tang Meng Review by: alg(cherry picked from commit e5720990bd3691222363bb2d674b7d39a0d8829f) --- editeng/source/uno/unonrule.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editeng/source') diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx index a69fdc7be1fd..ea028e1d90aa 100644 --- a/editeng/source/uno/unonrule.cxx +++ b/editeng/source/uno/unonrule.cxx @@ -439,6 +439,12 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const Sequence< beans::Prope sal_Int16 nSize = sal_Int16(); if( aVal >>= nSize ) { + // [Bug 120650] the slide content corrupt when open in Aoo + if ((nSize>250)||(nSize<=0)) + { + nSize = 100; + } + aFmt.SetBulletRelSize( (short)nSize ); continue; } -- cgit