Skip to content

Commit

Permalink
vector file writer: adapt to 2fcbc8b (fixes #12985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 19, 2015
1 parent 6cbe0ee commit 513cfad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -345,6 +345,9 @@ QgsVectorFileWriter::QgsVectorFileWriter(
OGRFieldType ogrType = OFTString; //default to string
int ogrWidth = attrField.length();
int ogrPrecision = attrField.precision();
if ( ogrPrecision > 0 )
++ogrWidth;

switch ( attrField.type() )
{
case QVariant::LongLong:
Expand Down

0 comments on commit 513cfad

Please sign in to comment.