[Libreoffice-commits] core.git: forms/source

Stephan Bergmann sbergman at redhat.com
Wed Mar 5 08:57:54 PST 2014


 forms/source/component/FormattedField.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 191a50828c8b5aa0f694ea7e1c8e6fce69cd1982
Author: Stephan Bergmann <sbergman at 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:


More information about the Libreoffice-commits mailing list