summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-27 17:06:34 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-27 17:22:13 +0100
commitb43887da4d4f794c7b5953d19bc17ae9ca66c82d (patch)
tree40660bda4c71e549d195e2c273450f117a2cb3f1 /forms
parent2352e1cf0215f9a7e9ef98e1d99d081419eb615f (diff)
FontControlModel::convertFastPropertyValue: fix bad cast of Kerning
Casting sal_Bool to integer lets the comparison always fail. Change-Id: I33cf9e9b6a65f81166870bdfe32e9a97101501df (cherry picked from commit e521a803c914e0d3718ae795976948aabbb9c76c)
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/formcontrolfont.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/formcontrolfont.cxx b/forms/source/component/formcontrolfont.cxx
index cd351e5b88a2..5745802f008f 100644
--- a/forms/source/component/formcontrolfont.cxx
+++ b/forms/source/component/formcontrolfont.cxx
@@ -301,7 +301,7 @@ namespace frm
break;
case PROPERTY_ID_FONT_KERNING:
- bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, (sal_Int16)m_aFont.Kerning );
+ bModified = tryPropertyValue( _rConvertedValue, _rOldValue, _rValue, m_aFont.Kerning );
break;
case PROPERTY_ID_FONT_ORIENTATION: