summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorOcke.Janssen <Ocke.Janssen@oracle.com>2011-02-02 09:43:05 +0100
committerOcke.Janssen <Ocke.Janssen@oracle.com>2011-02-02 09:43:05 +0100
commitd691fb3065d5ed29ac438a32d6cdfe4215f9e201 (patch)
treeba9d9eda40e1dfaefc52ae4ab1a9bd77267255f7 /dbaccess/source
parent58990a3bf1ceb2e2c1ea09cb166d4b5ad043f4d9 (diff)
dba34d: #i116214# set controldefault as string only
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/control/FieldDescControl.cxx30
1 files changed, 1 insertions, 29 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index c5c2a084b64a..10ad1ef00a0a 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -1682,35 +1682,7 @@ void OFieldDescControl::SaveData( OFieldDescription* pFieldDescr )
}
if ( sDefault.getLength() )
- {
- sal_uInt32 nFormatKey;
- try
- {
- if ( isTextFormat(pFieldDescr,nFormatKey) || pBoolDefault )
- {
- pFieldDescr->SetControlDefault(makeAny(sDefault));
- }
- else
- {
- try
- {
- double nValue = GetFormatter()->convertStringToNumber(nFormatKey,sDefault);
- nValue = checkDoubleForDateFormat(nValue,nFormatKey,GetFormatter());
- pFieldDescr->SetControlDefault(makeAny(nValue));
- }
- catch(const Exception&)
- {
- if ( sDefault.getLength() )
- pFieldDescr->SetControlDefault(makeAny(sDefault));
- else
- pFieldDescr->SetControlDefault(Any());
- }
- }
- }
- catch(const Exception&)
- {
- }
- } // if ( sDefault.getLength() )
+ pFieldDescr->SetControlDefault(makeAny(sDefault));
else
pFieldDescr->SetControlDefault(Any());