summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-04 11:49:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-04 12:34:15 +0100
commit8ca0f9854d371930b4b925f046d374bf8f125a17 (patch)
tree99eac01fafc289d9311bc6ee4e29a7e59d19166d /extensions
parentff998ca882378b26761b2e759b2a0d0136651348 (diff)
coverity#705375 Mixing enum types
Change-Id: Ic7cb53d8fe427b4c28b890b64fa4437846b5b493
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/fontdialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/fontdialog.cxx b/extensions/source/propctrlr/fontdialog.cxx
index e904dfadff45..2c796653a6b5 100644
--- a/extensions/source/propctrlr/fontdialog.cxx
+++ b/extensions/source/propctrlr/fontdialog.cxx
@@ -343,7 +343,7 @@ namespace pcr
const SvxWeightItem& rWeightItem =
static_cast<const SvxWeightItem&>(_rSet.Get(CFID_WEIGHT));
- float nWeight = VCLUnoHelper::ConvertFontWeight( rWeightItem.GetWeight());
+ float nWeight = VCLUnoHelper::ConvertFontWeight(rWeightItem.GetWeight());
lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_WEIGHT,makeAny(nWeight));
}
@@ -356,7 +356,7 @@ namespace pcr
const SvxPostureItem& rPostureItem =
static_cast<const SvxPostureItem&>(_rSet.Get(CFID_POSTURE));
- ::com::sun::star::awt::FontSlant eSlant = (::com::sun::star::awt::FontSlant)rPostureItem.GetPosture();
+ ::com::sun::star::awt::FontSlant eSlant = VCLUnoHelper::ConvertFontSlant(rPostureItem.GetPosture());
lcl_pushBackPropertyValue( _out_properties, PROPERTY_FONT_SLANT, makeAny((sal_Int16)eSlant));
}