summaryrefslogtreecommitdiff
path: root/emfio/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-29 20:49:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-30 16:40:56 +0200
commit8689bd5490b473a7ffb149bbe5f7f0683f679c72 (patch)
tree896991b9de6e8aa9e00149b8ff7c12873cd73d48 /emfio/source
parentd4d8fb12e81152ad75d1ab4cabfa300aa982e589 (diff)
convert TextAlign to scoped enum
Change-Id: Id2c466eacb44f0ea6adba75a0ac0be8be8e7ed4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119682 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio/source')
-rw-r--r--emfio/source/reader/mtftools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index e4d2ed462bdb..988e0aa7d1ec 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -1742,11 +1742,11 @@ namespace emfio
SetGfxMode( nGfxMode );
TextAlign eTextAlign;
if ( ( mnTextAlign & TA_BASELINE) == TA_BASELINE )
- eTextAlign = ALIGN_BASELINE;
+ eTextAlign = TextAlign::Baseline;
else if( ( mnTextAlign & TA_BOTTOM) == TA_BOTTOM )
- eTextAlign = ALIGN_BOTTOM;
+ eTextAlign = TextAlign::Bottom;
else
- eTextAlign = ALIGN_TOP;
+ eTextAlign = TextAlign::Top;
bool bChangeFont = false;
if ( mnLatestTextAlign != mnTextAlign )
{