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
This commit is contained in:
parent
53630966cc
commit
5b32d9c440
1 changed files with 12 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue