diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-05-27 20:39:17 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-05-27 20:39:17 +0200 |
commit | 5d178b6a1977988b5f331bcc1515c17982a3d116 (patch) | |
tree | de9a36bd585d8c60132c881be18b0a3cc6611314 /dbaccess/source/ui/control | |
parent | 3a2a53da020e66b9a9505b95bb0523d06ba7174e (diff) | |
parent | 2f76d4b430490dcda4e041f15cda9cd2d89189d0 (diff) |
Merge remote-tracking branch 'origin/integration/dev300_m106'
Conflicts:
dbaccess/source/ui/app/makefile.mk
Diffstat (limited to 'dbaccess/source/ui/control')
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index c30b36782582..a3fa95b01533 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -1680,35 +1680,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&) - { - } - } + pFieldDescr->SetControlDefault(makeAny(sDefault)); else pFieldDescr->SetControlDefault(Any()); |