diff options
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/rtattributehandler.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/forms/source/richtext/rtattributehandler.cxx b/forms/source/richtext/rtattributehandler.cxx index 688068c8fc31..c9b90c0e5e33 100644 --- a/forms/source/richtext/rtattributehandler.cxx +++ b/forms/source/richtext/rtattributehandler.cxx @@ -336,9 +336,8 @@ namespace frm ).Height(); } - SvxFontHeightItem* pNewItem = new SvxFontHeightItem( - getWhich(), nHeight, pFontHeightItem->GetProp(), - pFontHeightItem->GetPropUnit() ); + SvxFontHeightItem* pNewItem = new SvxFontHeightItem( nHeight, 100, getWhich() ); + pNewItem->SetProp( pFontHeightItem->GetProp(), pFontHeightItem->GetPropUnit() ); aState.setItem( pNewItem ); } @@ -365,9 +364,8 @@ namespace frm ).Height(); } - SvxFontHeightItem aNewItem( - getWhich(), nHeight, pFontHeightItem->GetProp(), - pFontHeightItem->GetPropUnit() ); + SvxFontHeightItem aNewItem( nHeight, 100, getWhich() ); + aNewItem.SetProp( pFontHeightItem->GetProp(), pFontHeightItem->GetPropUnit() ); if ( ( getAttributeId() == SID_ATTR_CHAR_FONTHEIGHT ) && _nForScriptType ) putItemForScript( _rNewAttribs, aNewItem, _nForScriptType ); |