summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/svm/SvmReader.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/vcl/source/filter/svm/SvmReader.cxx b/vcl/source/filter/svm/SvmReader.cxx
index 29f2e5516681..004565f3e563 100644
--- a/vcl/source/filter/svm/SvmReader.cxx
+++ b/vcl/source/filter/svm/SvmReader.cxx
@@ -280,7 +280,7 @@ rtl::Reference<MetaAction> SvmReader::MetaActionHandler(ImplMetaReadData* pData)
return OverlineColorHandler();
break;
case MetaActionType::TEXTALIGN:
- pAction = new MetaTextAlignAction;
+ return TextAlignHandler();
break;
case MetaActionType::MAPMODE:
pAction = new MetaMapModeAction;
@@ -1215,4 +1215,18 @@ rtl::Reference<MetaAction> SvmReader::OverlineColorHandler()
return pAction;
}
+
+rtl::Reference<MetaAction> SvmReader::TextAlignHandler()
+{
+ auto pAction = new MetaTextAlignAction();
+
+ sal_uInt16 nTmp16(0);
+
+ VersionCompatRead aCompat(mrStream);
+ mrStream.ReadUInt16(nTmp16);
+
+ pAction->SetTextAlign(static_cast<TextAlign>(nTmp16));
+
+ return pAction;
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */