Skip to content

Commit 6323def

Browse files
committed
spit: fix truncation issue
1 parent 74748ad commit 6323def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/spit/qgsshapefile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ bool QgsShapeFile::insertLayer( QString dbname, QString schema, QString primary_
388388

389389
// FIXME: OGR_F_GetFieldAsString returns junk when called with a 8.255 float field
390390
if ( column_types[n] == "float" )
391-
val = QString::number( OGR_F_GetFieldAsDouble( feat, n ) );
391+
val = QString::number( OGR_F_GetFieldAsDouble( feat, n ), 'f', 16 );
392392
else
393393
val = codec->toUnicode( OGR_F_GetFieldAsString( feat, n ) );
394394

0 commit comments

Comments
 (0)