diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-08 08:54:38 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-01-12 11:13:35 +0100 |
commit | 41838c456a04827084fd15eb0de90d747fb8550b (patch) | |
tree | 9840b64bb36d953c4483c4fee45d70ceb20ea8e1 /filter | |
parent | ofz#19790 Invalid-enum-value (diff) | |
download | core-41838c456a04827084fd15eb0de90d747fb8550b.tar.gz core-41838c456a04827084fd15eb0de90d747fb8550b.zip |
ofz#19901 Invalid-enum-value
Change-Id: I14273dfc695c504bd00f23f614b041207a8f2b29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86396
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 56716e215b9d..fbb718b732c7 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -4435,7 +4435,6 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r { OUString aObjectText; OUString aFontName; - MSO_GeoTextAlign eGeoTextAlign; if ( SeekToContent( DFF_Prop_gtextFont, rSt ) ) { @@ -4470,7 +4469,7 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r ReadObjText( aObjectText, pRet ); } - eGeoTextAlign = static_cast<MSO_GeoTextAlign>(GetPropertyValue( DFF_Prop_gtextAlign, mso_alignTextCenter )); + auto eGeoTextAlign = GetPropertyValue(DFF_Prop_gtextAlign, mso_alignTextCenter); { SdrTextHorzAdjust eHorzAdjust; switch( eGeoTextAlign ) |