summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-02-21 10:10:53 +0000
committerFrank Schönheit <fs@openoffice.org>2001-02-21 10:10:53 +0000
commitce80c9d06f7cb9234cc342c2cc458fa07c80ac96 (patch)
treefc306e45ba01397d372ce08bbb10d5ed12d70419 /forms
parent2432470efea36df481ddb87156aafa8c7fbe765e (diff)
layout ...
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/FormattedField.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index 2986f6fd2628..3b0e576991f8 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FormattedField.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: fs $ $Date: 2001-02-13 17:41:39 $
+ * last change: $Author: fs $ $Date: 2001-02-21 11:10:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1095,22 +1095,25 @@ sal_Bool OFormattedModel::_commit()
if (!compare(aNewValue, m_aSaveValue))
{
// Leerstring + EmptyIsNull = void
- if (!aNewValue.hasValue() ||
- (aNewValue.getValueType().getTypeClass() == TypeClass_STRING)
- && (getString(aNewValue).getLength() == 0) && m_bEmptyIsNull)
+ if ( !aNewValue.hasValue()
+ || ( (aNewValue.getValueType().getTypeClass() == TypeClass_STRING)
+ && (getString(aNewValue).getLength() == 0)
+ && m_bEmptyIsNull
+ )
+ )
m_xColumnUpdate->updateNull();
else
{
// als Value koennen nur double, string oder void auftreten
try
{
- if (aNewValue.getValueType().getTypeClass() == TypeClass_DOUBLE)
+ if (aNewValue.getValueType().getTypeClass() == TypeClass_DOUBLE)
{
DBTypeConversion::setValue(m_xColumnUpdate, m_aNullDate, getDouble(aNewValue), m_nKeyType);
}
else
{
- DBG_ASSERT(aNewValue.getValueType().getTypeClass() == TypeClass_STRING, "OFormattedModel::_commit : invalud value type !");
+ DBG_ASSERT(aNewValue.getValueType().getTypeClass() == TypeClass_STRING, "OFormattedModel::_commit : invalud value type !");
m_xColumnUpdate->updateString(getString(aNewValue));
}
}