[Libreoffice-commits] core.git: sd/source

navin patidar patidar at kacst.edu.sa
Mon Mar 4 04:01:23 PST 2013


 sd/source/ui/view/drtxtob1.cxx |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 5b32d9c4406a68507ac9737ee0ada8bd1d424815
Author: navin patidar <patidar at 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();
         }


More information about the Libreoffice-commits mailing list