diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-05 17:57:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-05 17:57:11 +0100 |
commit | 191a50828c8b5aa0f694ea7e1c8e6fce69cd1982 (patch) | |
tree | 5b31fde82b6c2951f40f7f46e1d0f52822e20b19 /forms | |
parent | f51f03a46102333bac6a7fe06bc8538492f413a5 (diff) |
simplify
Change-Id: Icd2dff124ca331935412e2653c57943b92deeea4
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/FormattedField.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index ec4c7cd55b04..533c6fac33c5 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -957,7 +957,7 @@ Any OFormattedModel::translateControlValueToExternalValue( ) const // if this asserts ... well, the somebody set the TreatAsNumeric property to false, // and the control value is a string. This implies some weird misconfiguration // of the FormattedModel, so we won't care for it for the moment. - aExternalValue <<= (sal_Bool)( fValue ? sal_True : sal_False ); + aExternalValue <<= fValue != 0.0; } break; default: |