summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-04 11:43:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-04 12:34:14 +0100
commitd5bafdddf884d4d6febd1e20d5f207e34fe77b5a (patch)
tree214fd9c1a189c92fdef095e795db5a118bf850d2 /toolkit
parentcoverity#705388 Mixing enum types (diff)
downloadcore-d5bafdddf884d4d6febd1e20d5f207e34fe77b5a.tar.gz
core-d5bafdddf884d4d6febd1e20d5f207e34fe77b5a.zip
coverity#705387 Mixing enum types
Change-Id: Iaba60d05b73ca3229aa8b35b338ee54381efd2d3
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/helper/vclunohelper.cxx4
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 )