summaryrefslogtreecommitdiffstats
path: root/forms/source/richtext/rtattributehandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/richtext/rtattributehandler.cxx')
-rw-r--r--forms/source/richtext/rtattributehandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/richtext/rtattributehandler.cxx b/forms/source/richtext/rtattributehandler.cxx
index ededc66730cb..1e9998700cfa 100644
--- a/forms/source/richtext/rtattributehandler.cxx
+++ b/forms/source/richtext/rtattributehandler.cxx
@@ -326,7 +326,7 @@ namespace frm
{
// by definition, the item should have the unit twip
sal_uLong nHeight = pFontHeightItem->GetHeight();
- if ( _rAttribs.GetPool()->GetMetric( getWhich() ) != SFX_MAPUNIT_TWIP )
+ if ( _rAttribs.GetPool()->GetMetric( getWhich() ) != MAP_TWIP )
{
nHeight = OutputDevice::LogicToLogic(
Size( 0, nHeight ),
@@ -352,13 +352,13 @@ namespace frm
if ( pFontHeightItem )
{
// correct measurement units
- SfxMapUnit eItemMapUnit = pFontHeightItem->GetPropUnit(); (void)eItemMapUnit;
+ MapUnit eItemMapUnit = pFontHeightItem->GetPropUnit(); (void)eItemMapUnit;
sal_uLong nHeight = pFontHeightItem->GetHeight();
- if ( _rNewAttribs.GetPool()->GetMetric( getWhich() ) != SFX_MAPUNIT_TWIP )
+ if ( _rNewAttribs.GetPool()->GetMetric( getWhich() ) != MAP_TWIP )
{
nHeight = OutputDevice::LogicToLogic(
Size( 0, nHeight ),
- MapMode( (MapUnit)( SFX_MAPUNIT_TWIP ) ),
+ MapMode( (MapUnit)( MAP_TWIP ) ),
MapMode( (MapUnit)( _rNewAttribs.GetPool()->GetMetric( getWhich() ) ) )
).Height();
}