Revert "Some SvxFontHeightItem clean-up"
This reverts commit d5f93eb47e
,
SvxFontHeightItem::SetProp was used to override "dummy" 100% nProp/ePropUnit
values that did not match the computed nHeight value with nProp/ePropUnit values
that are supposed to match the computed nHeight value. Yuck.
Change-Id: Ic12e824054b3c5da7aca766b9b3eb076d1837d9a
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user