From 191a50828c8b5aa0f694ea7e1c8e6fce69cd1982 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 5 Mar 2014 17:57:11 +0100 Subject: simplify Change-Id: Icd2dff124ca331935412e2653c57943b92deeea4 --- forms/source/component/FormattedField.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forms/source/component/FormattedField.cxx') 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: -- cgit