summaryrefslogtreecommitdiff
path: root/drawinglayer/source/tools/wmfemfhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'drawinglayer/source/tools/wmfemfhelper.cxx')
-rw-r--r--drawinglayer/source/tools/wmfemfhelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx
index a54893025984..98a807fa5c47 100644
--- a/drawinglayer/source/tools/wmfemfhelper.cxx
+++ b/drawinglayer/source/tools/wmfemfhelper.cxx
@@ -1077,16 +1077,16 @@ namespace wmfemfhelper
rTextTransform.scale(aFontScaling.getX(), aFontScaling.getY());
// take text align into account
- if(ALIGN_BASELINE != rFont.GetAlignment())
+ if (TextAlign::Baseline != rFont.GetAlignment())
{
drawinglayer::primitive2d::TextLayouterDevice aTextLayouterDevice;
aTextLayouterDevice.setFont(rFont);
- if(ALIGN_TOP == rFont.GetAlignment())
+ if (TextAlign::Top == rFont.GetAlignment())
{
rAlignmentOffset.setY(aTextLayouterDevice.getFontAscent());
}
- else // ALIGN_BOTTOM
+ else // TextAlign::Bottom
{
rAlignmentOffset.setY(-aTextLayouterDevice.getFontDescent());
}