summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-11 18:39:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-11 18:39:20 +0100
commitd5f93eb47ec4c27e93ad908b0199790c702491a0 (patch)
tree557a89c8833f91e5b370fb72194ce8e974f0e3f4 /editeng
parent047830de46fc40629dc9bdf1e8b9f427b6648c36 (diff)
Some SvxFontHeightItem clean-up
...and operator= shall probably copy rSize.ePropUnit... Change-Id: I112c02b3a3b2ce23f3d03f03881136e05be29017
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/textitem.cxx11
1 files changed, 8 insertions, 3 deletions
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;
}