summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-03 11:59:05 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-06-03 17:37:41 +0200
commit2bccbd2ba6c90d5e02285629c2b079c35260c08b (patch)
tree2115be5a4bed004ef3d0ff845fe46ba6bc8c4765 /lotuswordpro
parentf5f9cac0c5f04246718c438b4673b36e803fda29 (diff)
ofz#23016 Invalid-enum-value
Change-Id: Ie3a783002b6ad82c6939b567cb53c3d4afbfac7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95408 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpparastyle.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx
index 33b6cc37c77b..4e9871363914 100644
--- a/lotuswordpro/source/filter/lwpparastyle.cxx
+++ b/lotuswordpro/source/filter/lwpparastyle.cxx
@@ -385,9 +385,8 @@ void LwpParaStyle::ApplyBreaks(XFParaStyle* pParaStyle, const LwpBreaksOverride*
void LwpParaStyle::ApplyAlignment(XFParaStyle* pParaStyle, const LwpAlignmentOverride* pAlign)
{
enumXFAlignType alignType = enumXFAlignStart;
- LwpAlignmentOverride::AlignType type;
+ auto type = pAlign->GetAlignType();
- type = pAlign->GetAlignType();
pParaStyle->SetNumberRight(false);//to identify its align attribute
switch(type)
{