Skip to content

Commit 513cfad

Browse files
committed
vector file writer: adapt to 2fcbc8b (fixes #12985)
1 parent 6cbe0ee commit 513cfad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsvectorfilewriter.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ QgsVectorFileWriter::QgsVectorFileWriter(
345345
OGRFieldType ogrType = OFTString; //default to string
346346
int ogrWidth = attrField.length();
347347
int ogrPrecision = attrField.precision();
348+
if ( ogrPrecision > 0 )
349+
++ogrWidth;
350+
348351
switch ( attrField.type() )
349352
{
350353
case QVariant::LongLong:

0 commit comments

Comments
 (0)