[fdo-commits] r203 - branches/3.2.x/Providers/SHP/Src/Provider

svn_fdo at osgeo.org svn_fdo at osgeo.org
Tue Feb 27 16:15:03 EST 2007


Author: jacklee
Date: 2007-02-27 16:15:03 -0500 (Tue, 27 Feb 2007)
New Revision: 203

Modified:
   branches/3.2.x/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp
Log:
Do not adjust the precision

Modified: branches/3.2.x/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp
===================================================================
--- branches/3.2.x/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp	2007-02-26 07:12:58 UTC (rev 202)
+++ branches/3.2.x/Providers/SHP/Src/Provider/ShpLpPropertyDefinition.cpp	2007-02-27 21:15:03 UTC (rev 203)
@@ -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