[PATCH] fix fdo#61492: update sd:View with FONTHEIGHT attribute chan...
navin patidar (via Code Review)
gerrit at gerrit.libreoffice.org
Tue Feb 26 21:41:06 PST 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/2433
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/33/2433/1
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
---
M sd/source/ui/view/drtxtob1.cxx
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index 46bb8e3..8a5d0e5 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -312,7 +312,16 @@
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();
}
rReq.Done();
}
--
To view, visit https://gerrit.libreoffice.org/2433
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibf8c6423e64d194c2711d9c37b58de31f1c4c2dd
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: navin patidar <patidar at kacst.edu.sa>
More information about the LibreOffice
mailing list