[fdo-commits] r2614 - trunk/Providers/SHP/Src/Provider
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Tue Feb 27 16:40:56 EST 2007
Author: jacklee
Date: 2007-02-27 16:40:56 -0500 (Tue, 27 Feb 2007)
New Revision: 2614
Modified:
trunk/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp
Log:
Do not adjust the precision
Modified: trunk/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp
===================================================================
--- trunk/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp 2007-02-23 23:25:45 UTC (rev 2613)
+++ trunk/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp 2007-02-27 21:40:56 UTC (rev 2614)
@@ -81,7 +81,7 @@
{
int colWidth = info->GetColumnWidthAt(m_physicalColumnIndex);
int colScale = info->GetColumnScaleAt(m_physicalColumnIndex);
- m_logicalProperty->SetPrecision(colScale==0 ? colWidth : colWidth-1); // subtract 1 for the '.'
+ m_logicalProperty->SetPrecision(colWidth);
m_logicalProperty->SetScale(colScale);
}
@@ -157,7 +157,7 @@
if (logicalPropertyType==FdoDataType_Decimal)
{
info->SetColumnScale (physicalColumnIndex, m_logicalProperty->GetScale());
- info->SetColumnWidth (physicalColumnIndex, m_logicalProperty->GetScale()==0 ? m_logicalProperty->GetPrecision() : m_logicalProperty->GetPrecision()+1);
+ info->SetColumnWidth (physicalColumnIndex, m_logicalProperty->GetPrecision());
}
else // logicalPropertyType==FdoDataType_Int32
{
More information about the fdo-commits
mailing list