If we suppose_pType->aCreateParams.isEmpty() is useful, here's a naive patch: diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx index 65fb772..d3495a8 100644 --- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx +++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx @@ -221,7 +221,7 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,bool _bForce SetScale(::std::min<sal_Int32>(GetScale() ? GetScale() : DEFAULT_NUMERIC_SCALE,_pType->nMaximumScale)); } } - if ( _pType->aCreateParams.isEmpty() ) + if ( _pType->aCreateParams.isEmpty() || _bForce ) { SetPrecision(_pType->nPrecision); SetScale(_pType->nMinimumScale);
since _bReset seems to deal with SetFormatKey and SetControlDefault, see lines 176..180 of this same file.
If we suppose_ pType-> aCreateParams. isEmpty( ) is useful, here's a naive patch: source/ ui/tabledesign/ FieldDescriptio ns.cxx b/dbaccess/ source/ ui/tabledesign/ FieldDescriptio ns.cxx source/ ui/tabledesign/ FieldDescriptio ns.cxx source/ ui/tabledesign/ FieldDescriptio ns.cxx on::FillFromTyp eInfo(const TOTypeInfoSP& _pType,bool _bForce
SetScale( ::std:: min<sal_ Int32>( GetScale( ) ? GetScale() : DEFAULT_ NUMERIC_ SCALE,_ pType-> nMaximumScale) ); >aCreateParams. isEmpty( ) ) >aCreateParams. isEmpty( ) || _bForce )
SetPrecis ion(_pType- >nPrecision) ;
SetScale( _pType- >nMinimumScale) ;
diff --git a/dbaccess/
index 65fb772..d3495a8 100644
--- a/dbaccess/
+++ b/dbaccess/
@@ -221,7 +221,7 @@ void OFieldDescripti
}
}
- if ( _pType-
+ if ( _pType-
{
since _bReset seems to deal with SetFormatKey and SetControlDefault, see lines 176..180 of this same file.