From d5f93eb47ec4c27e93ad908b0199790c702491a0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 11 Nov 2014 18:39:20 +0100 Subject: Some SvxFontHeightItem clean-up ...and operator= shall probably copy rSize.ePropUnit... Change-Id: I112c02b3a3b2ce23f3d03f03881136e05be29017 --- editeng/source/items/textitem.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'editeng') diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 4a2bbd8b83a8..56be23996ec6 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -723,7 +723,12 @@ SvxFontHeightItem::SvxFontHeightItem( const sal_uLong nSz, SetHeight( nSz,nPrp ); // calculate in percentage } - +SvxFontHeightItem::SvxFontHeightItem( + sal_uInt16 wid, sal_uInt32 height, sal_uInt16 prop, SfxMapUnit propUnit): + SfxPoolItem(wid) +{ + SetHeight(height, prop, propUnit); +} SfxPoolItem* SvxFontHeightItem::Clone( SfxItemPool * ) const { @@ -771,8 +776,8 @@ SfxPoolItem* SvxFontHeightItem::Create( SvStream& rStrm, if( FONTHEIGHT_UNIT_VERSION <= nVersion ) rStrm.ReadUInt16( nPropUnit ); - SvxFontHeightItem* pItem = new SvxFontHeightItem( nsize, 100, Which() ); - pItem->SetProp( nprop, (SfxMapUnit)nPropUnit ); + SvxFontHeightItem* pItem = new SvxFontHeightItem( + Which(), nsize, nprop, (SfxMapUnit)nPropUnit ); return pItem; } -- cgit