[Libreoffice-commits] .: Branch 'libreoffice-3-4' - filter/source
Petr Mladek
pmladek at kemper.freedesktop.org
Wed Apr 27 11:37:21 PDT 2011
filter/source/msfilter/svdfppt.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 36edcd499f1cbb5775a2d49bcd23bebfe41d8bd6
Author: Radek Doulik <rodo at novell.com>
Date: Wed Apr 27 20:36:53 2011 +0200
fix-ppt-linespacing-import-export.diff: fix ppt import (bnc#355302)
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 9c6da58..e15afe1 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -6094,9 +6094,11 @@ void PPTParagraphObj::ApplyTo( SfxItemSet& rSet, boost::optional< sal_Int16 >&
}
rSet.Put( SdrTextFixedCellHeightItem( sal_True ), SDRATTR_TEXT_USEFIXEDCELLHEIGHT );
SvxLineSpacingItem aItem( 200, EE_PARA_SBL );
- if ( nVal2 <= 0 )
+ if ( nVal2 <= 0 ) {
aItem.SetLineHeight( (sal_uInt16)( rManager.ScalePoint( -nVal2 ) / 8 ) );
- else
+ aItem.GetLineSpaceRule() = SVX_LINE_SPACE_FIX;
+ aItem.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF;
+ } else
{
sal_uInt8 nPropLineSpace = (sal_uInt8)nVal2;
aItem.SetPropLineSpace( nPropLineSpace );
More information about the Libreoffice-commits
mailing list