Skip to content
Permalink
Browse files

spit: fix truncation issue

  • Loading branch information
jef-n committed Jul 4, 2013
1 parent 74748ad commit 6323def8f1d3b6ec0ab7172586640f81ad143de5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/spit/qgsshapefile.cpp
@@ -388,7 +388,7 @@ bool QgsShapeFile::insertLayer( QString dbname, QString schema, QString primary_

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

0 comments on commit 6323def

Please sign in to comment.
You can’t perform that action at this time.