diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-04 11:43:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-04 12:34:14 +0100 |
commit | d5bafdddf884d4d6febd1e20d5f207e34fe77b5a (patch) | |
tree | 214fd9c1a189c92fdef095e795db5a118bf850d2 /toolkit/source/helper | |
parent | 3d8eee45c9256ec66458fc4fe1cf6c6814075bae (diff) |
coverity#705387 Mixing enum types
Change-Id: Iaba60d05b73ca3229aa8b35b338ee54381efd2d3
Diffstat (limited to 'toolkit/source/helper')
-rw-r--r-- | toolkit/source/helper/vclunohelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx index 4a009577186d..ee6e2e328470 100644 --- a/toolkit/source/helper/vclunohelper.cxx +++ b/toolkit/source/helper/vclunohelper.cxx @@ -403,8 +403,8 @@ Font VCLUnoHelper::CreateFont( const ::com::sun::star::awt::FontDescriptor& rDes aFont.SetWidthType( VCLUnoHelper::ConvertFontWidth( rDescr.CharacterWidth ) ); if ( rDescr.Weight ) aFont.SetWeight( VCLUnoHelper::ConvertFontWeight( rDescr.Weight ) ); - if ( (FontItalic)rDescr.Slant != ITALIC_DONTKNOW ) - aFont.SetItalic( (FontItalic)rDescr.Slant ); + if ( rDescr.Slant != css::awt::FontSlant_DONTKNOW ) + aFont.SetItalic( VCLUnoHelper::ConvertFontSlant( rDescr.Slant ) ); if ( (FontUnderline)rDescr.Underline != UNDERLINE_DONTKNOW ) aFont.SetUnderline( (FontUnderline)rDescr.Underline ); if ( (FontStrikeout)rDescr.Strikeout != STRIKEOUT_DONTKNOW ) |