sd/source/ui/view/drtxtob1.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
New commits: commit 5b32d9c4406a68507ac9737ee0ada8bd1d424815 Author: navin patidar <pati...@kacst.edu.sa> Date: Wed Feb 27 08:25:45 2013 +0300 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 diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 7d92552..4163ff1 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(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits