diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-11 18:39:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-11 18:39:20 +0100 |
commit | d5f93eb47ec4c27e93ad908b0199790c702491a0 (patch) | |
tree | 557a89c8833f91e5b370fb72194ce8e974f0e3f4 /forms | |
parent | 047830de46fc40629dc9bdf1e8b9f427b6648c36 (diff) |
Some SvxFontHeightItem clean-up
...and operator= shall probably copy rSize.ePropUnit...
Change-Id: I112c02b3a3b2ce23f3d03f03881136e05be29017
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/rtattributehandler.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/forms/source/richtext/rtattributehandler.cxx b/forms/source/richtext/rtattributehandler.cxx index c9b90c0e5e33..688068c8fc31 100644 --- a/forms/source/richtext/rtattributehandler.cxx +++ b/forms/source/richtext/rtattributehandler.cxx @@ -336,8 +336,9 @@ namespace frm ).Height(); } - SvxFontHeightItem* pNewItem = new SvxFontHeightItem( nHeight, 100, getWhich() ); - pNewItem->SetProp( pFontHeightItem->GetProp(), pFontHeightItem->GetPropUnit() ); + SvxFontHeightItem* pNewItem = new SvxFontHeightItem( + getWhich(), nHeight, pFontHeightItem->GetProp(), + pFontHeightItem->GetPropUnit() ); aState.setItem( pNewItem ); } @@ -364,8 +365,9 @@ namespace frm ).Height(); } - SvxFontHeightItem aNewItem( nHeight, 100, getWhich() ); - aNewItem.SetProp( pFontHeightItem->GetProp(), pFontHeightItem->GetPropUnit() ); + SvxFontHeightItem aNewItem( + getWhich(), nHeight, pFontHeightItem->GetProp(), + pFontHeightItem->GetPropUnit() ); if ( ( getAttributeId() == SID_ATTR_CHAR_FONTHEIGHT ) && _nForScriptType ) putItemForScript( _rNewAttribs, aNewItem, _nForScriptType ); |