forms/source/component/FormattedField.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 191a50828c8b5aa0f694ea7e1c8e6fce69cd1982 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Mar 5 17:57:11 2014 +0100 simplify Change-Id: Icd2dff124ca331935412e2653c57943b92deeea4 diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index ec4c7cd..533c6fa 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: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits