summaryrefslogtreecommitdiff
path: root/vcl/source/filter/eps/eps.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter/eps/eps.cxx')
-rw-r--r--vcl/source/filter/eps/eps.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/eps/eps.cxx b/vcl/source/filter/eps/eps.cxx
index 2da28338c97c..61ea92e0269b 100644
--- a/vcl/source/filter/eps/eps.cxx
+++ b/vcl/source/filter/eps/eps.cxx
@@ -408,7 +408,7 @@ bool PSWriter::WritePS( const Graphic& rGraphic, SvStream& rTargetStream, Filter
eLineCap = SvtGraphicStroke::capButt;
eJoinType = SvtGraphicStroke::joinMiter;
aBackgroundColor = COL_WHITE;
- eTextAlign = ALIGN_BASELINE;
+ eTextAlign = TextAlign::Baseline;
if( pMTF->GetActionSize() )
{
@@ -2075,11 +2075,11 @@ void PSWriter::ImplSetAttrForText( const Point& rPoint )
ImplWriteDouble( aSize.Height() );
mpPS->WriteCharPtr( "sf " );
}
- if ( eTextAlign != ALIGN_BASELINE )
+ if ( eTextAlign != TextAlign::Baseline )
{ // PostScript does not know about FontAlignment
- if ( eTextAlign == ALIGN_TOP ) // -> so I assume that
+ if ( eTextAlign == TextAlign::Top ) // -> so I assume that
aPoint.AdjustY( aSize.Height() * 4 / 5 ); // the area under the baseline
- else if ( eTextAlign == ALIGN_BOTTOM ) // is about 20% of the font size
+ else if ( eTextAlign == TextAlign::Bottom ) // is about 20% of the font size
aPoint.AdjustY( -( aSize.Height() / 5 ) );
}
ImplMoveTo( aPoint );