diff options
author | navin patidar <patidar@kacst.edu.sa> | 2013-02-27 08:25:45 +0300 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-03-04 13:00:49 +0100 |
commit | 5b32d9c4406a68507ac9737ee0ada8bd1d424815 (patch) | |
tree | 1b8c37fd24d153132db4f4667255b55263f9b900 /sd | |
parent | 53630966cca9f88cff01c6607abc7e6ed0cca877 (diff) |
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
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drtxtob1.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
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(); } |