From 5b32d9c4406a68507ac9737ee0ada8bd1d424815 Mon Sep 17 00:00:00 2001 From: navin patidar Date: Wed, 27 Feb 2013 08:25:45 +0300 Subject: [PATCH] fix fdo#61492: update sd:View with FONTHEIGHT attribute changes. update sd:View with FONTHEIGHT attribute changes, so that it can position bullet and text properly. Change-Id: Ibf8c6423e64d194c2711d9c37b58de31f1c4c2dd --- sd/source/ui/view/drtxtob1.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 7d92552cf5a0..4163ff1dcd02 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -312,7 +312,18 @@ void TextObjectBar::Execute( SfxRequest &rReq ) if( pFontList ) { FuText::ChangeFontSize( nSlot == SID_GROW_FONT_SIZE, pOLV, pFontList, mpView ); - mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_ATTR_CHAR_FONTHEIGHT ); + + SfxItemSet aSet( pOLV->GetEditView().GetAttribs() ); + SfxItemSet aNewAttrs (pOLV->GetEditView().GetEmptyItemSet() ); + + aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT ), EE_CHAR_FONTHEIGHT ); + aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT_CJK ), EE_CHAR_FONTHEIGHT_CJK ); + aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT_CTL ), EE_CHAR_FONTHEIGHT_CTL ); + + mpView->SetAttributes( aNewAttrs ); + Invalidate(); + // to refresh preview (in outline mode), slot has to be invalidated: + mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_PREVIEW_STATE, sal_True, sal_False ); } rReq.Done(); }