[fdo-commits] r204 - branches/3.2.1/Providers/SHP/Src/Provider
svn_fdo at osgeo.org
svn_fdo at osgeo.org
Tue Feb 27 16:32:26 EST 2007
Author: jacklee
Date: 2007-02-27 16:32:25 -0500 (Tue, 27 Feb 2007)
New Revision: 204
Modified:
branches/3.2.1/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp
Log:
Do not adjust the precision
Modified: branches/3.2.1/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp
===================================================================
--- branches/3.2.1/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp 2007-02-27 21:15:03 UTC (rev 203)
+++ branches/3.2.1/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp 2007-02-27 21:32:25 UTC (rev 204)
@@ -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