diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-01-03 13:58:05 +0100 |
---|---|---|
committer | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-01-03 13:58:05 +0100 |
commit | e89ecedf654df0267c260ef2dc489be1b261fb5a (patch) | |
tree | f75b8354e306033316c9a396f5cee43c0df643d3 /forms/source | |
parent | Automated merge with ssh://hg@hg.services.openoffice.org/cws/dba34c (diff) | |
download | core-e89ecedf654df0267c260ef2dc489be1b261fb5a.tar.gz core-e89ecedf654df0267c260ef2dc489be1b261fb5a.zip |
dba34c: #i110323# fix for double
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/FormattedField.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx index 697b39d4931e..193ed4b1a693 100644 --- a/forms/source/component/FormattedField.cxx +++ b/forms/source/component/FormattedField.cxx @@ -1040,10 +1040,10 @@ sal_Bool OFormattedModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) m_xColumnUpdate->updateNull(); else { - // als Value koennen nur double, string oder void auftreten try { - if ( aControlValue.getValueType().getTypeClass() == TypeClass_DOUBLE ) + double f = 0.0; + if ( aControlValue.getValueType().getTypeClass() == TypeClass_DOUBLE || (aControlValue >>= f)) // #i110323 { DBTypeConversion::setValue( m_xColumnUpdate, m_aNullDate, getDouble( aControlValue ), m_nKeyType ); } |