summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-11 16:50:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-11 21:24:51 +0100
commitf189d87c37fe80338b2d8d0e6cbea3f1d4570244 (patch)
tree6aa9a5485f0bc02cbfdd9094dae4c249cb71cb3c /filter
parent258f9c44d882c8c43e04c84983942f6bd6f3982c (diff)
ofz#20025 Invalid-enum-value
Change-Id: Ia1972a283b7d1d27a60ac763498eb175530b0c4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86612 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index dca72ee06689..9f0db88ee889 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -1321,7 +1321,7 @@ void DffPropertyReader::ApplyFillAttributes( SvStream& rIn, SfxItemSet& rSet, co
if ( nFillFlags & 0x10 )
{
- MSO_FillType eMSO_FillType = static_cast<MSO_FillType>(GetPropertyValue( DFF_Prop_fillType, mso_fillSolid ));
+ auto eMSO_FillType = GetPropertyValue(DFF_Prop_fillType, mso_fillSolid);
drawing::FillStyle eXFill = drawing::FillStyle_NONE;
switch( eMSO_FillType )
{
@@ -2705,7 +2705,7 @@ void DffPropertyReader::ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObj
nFillFlags &= ~0x10;
if ( nFillFlags & 0x10 )
{
- MSO_FillType eMSO_FillType = static_cast<MSO_FillType>(GetPropertyValue( DFF_Prop_fillType, mso_fillSolid ));
+ auto eMSO_FillType = GetPropertyValue(DFF_Prop_fillType, mso_fillSolid);
switch( eMSO_FillType )
{
case mso_fillSolid :
@@ -2836,7 +2836,7 @@ void DffPropertyReader::CheckAndCorrectExcelTextRotation( SvStream& rIn, SfxItem
}
-void DffPropertyReader::ImportGradientColor( SfxItemSet& aSet,MSO_FillType eMSO_FillType, double dTrans , double dBackTrans) const
+void DffPropertyReader::ImportGradientColor( SfxItemSet& aSet, sal_uInt32 eMSO_FillType, double dTrans , double dBackTrans) const
{
//MS Focus prop will impact the start and end color position. And AOO does not
//support this prop. So need some swap for the two color to keep fidelity with AOO and MS shape.