summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-07-24 10:16:51 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-07-24 10:17:42 +0200
commit215703b494d5c4385944db06015479ef7789a497 (patch)
tree5826823da69841efbe1b8f4cd599f35be13f962d
parent9f282bdd86d25dd8c01c01a3cadcc8fba599294f (diff)
Typo: PRECSION->PRECISION
Change-Id: I63f8ad597cea2562b567b7df13823b75a6e50dde
-rw-r--r--dbaccess/source/ui/tabledesign/FieldDescriptions.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
index 65fb772bbf69..b23f85e4f861 100644
--- a/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
+++ b/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx
@@ -28,9 +28,9 @@
#include "UITools.hxx"
#include <com/sun/star/util/NumberFormat.hpp>
-#define DEFAULT_VARCHAR_PRECSION 100
-#define DEFAULT_OTHER_PRECSION 16
-#define DEFAULT_NUMERIC_PRECSION 5
+#define DEFAULT_VARCHAR_PRECISION 100
+#define DEFAULT_OTHER_PRECISION 16
+#define DEFAULT_NUMERIC_PRECISION 5
#define DEFAULT_NUMERIC_SCALE 0
using namespace dbaui;
@@ -186,7 +186,7 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,bool _bForce
case DataType::VARCHAR:
if ( bForce )
{
- sal_Int32 nPrec = DEFAULT_VARCHAR_PRECSION;
+ sal_Int32 nPrec = DEFAULT_VARCHAR_PRECISION;
if ( GetPrecision() )
nPrec = GetPrecision();
SetPrecision(::std::min<sal_Int32>(nPrec,_pType->nPrecision));
@@ -201,7 +201,7 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,bool _bForce
default:
if ( bForce )
{
- sal_Int32 nPrec = DEFAULT_OTHER_PRECSION;
+ sal_Int32 nPrec = DEFAULT_OTHER_PRECISION;
switch ( _pType->nType )
{
case DataType::BIT:
@@ -216,7 +216,7 @@ void OFieldDescription::FillFromTypeInfo(const TOTypeInfoSP& _pType,bool _bForce
}
if ( _pType->nPrecision )
- SetPrecision(::std::min<sal_Int32>(nPrec ? nPrec : DEFAULT_NUMERIC_PRECSION,_pType->nPrecision));
+ SetPrecision(::std::min<sal_Int32>(nPrec ? nPrec : DEFAULT_NUMERIC_PRECISION,_pType->nPrecision));
if ( _pType->nMaximumScale )
SetScale(::std::min<sal_Int32>(GetScale() ? GetScale() : DEFAULT_NUMERIC_SCALE,_pType->nMaximumScale));
}