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@kacst.edu.sa>
Context
- [PATCH] fix fdo#61492: update sd:View with FONTHEIGHT attribute chan... · navin patidar (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.