Kaydet (Commit) 63c48a7e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix SvxFontHeightItem::operator=

...and remove thus unused SetHeightValue

Change-Id: I9c8c18614233df6086ff23533e7e7129848f42ef
üst 2a68ed19
...@@ -66,8 +66,10 @@ public: ...@@ -66,8 +66,10 @@ public:
inline SvxFontHeightItem& operator=(const SvxFontHeightItem& rSize) inline SvxFontHeightItem& operator=(const SvxFontHeightItem& rSize)
{ {
SetHeightValue( rSize.GetHeight() ); DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
SetProp( rSize.GetProp(), ePropUnit ); nHeight = rSize.nHeight;
nProp = rSize.nProp;
ePropUnit = rSize.ePropUnit;
return *this; return *this;
} }
...@@ -79,12 +81,6 @@ public: ...@@ -79,12 +81,6 @@ public:
sal_uInt32 GetHeight() const { return nHeight; } sal_uInt32 GetHeight() const { return nHeight; }
void SetHeightValue( sal_uInt32 nNewHeight )
{
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
nHeight = nNewHeight;
}
void SetProp( const sal_uInt16 nNewProp, void SetProp( const sal_uInt16 nNewProp,
SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE ) SfxMapUnit eUnit = SFX_MAPUNIT_RELATIVE )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment