Skip to content

Commit

Permalink
implement #1526
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10099 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 3, 2009
1 parent d033b0f commit a5c2aec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,15 @@ QgsVectorFileWriter::QgsVectorFileWriter( const QString& shapefileName,
int ogrPrecision = -1;
switch ( attrField.type() )
{
case QVariant::LongLong:
ogrType = OFTString;
ogrWidth = 21;
break;

case QVariant::String:
ogrType = OFTString;
break;

case QVariant::Int:
ogrType = OFTInteger;
ogrWidth = 10;
Expand Down

0 comments on commit a5c2aec

Please sign in to comment.