Skip to content

Commit

Permalink
fix #1707, take two
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11442 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 19, 2009
1 parent 0466bca commit 43216f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/grass/qgsgrassprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ void QgsGrassProvider::setFeatureAttributes( int layerId, int cat, QgsFeature *f
if ( att != NULL )
{
QByteArray cstr( att->values[i] );
feature->addAttribute( i, QVariant( mEncoding->toUnicode( cstr ) ) );
feature->addAttribute( i, convertValue( mLayers[mLayerId].fields[i].type(), mEncoding->toUnicode( cstr ) ) );
}
else /* it may happen that attributes are missing -> set to empty string */
{
Expand Down Expand Up @@ -1273,7 +1273,7 @@ void QgsGrassProvider::setFeatureAttributes( int layerId, int cat, QgsFeature *f
if ( att != NULL )
{
QByteArray cstr( att->values[*iter] );
feature->addAttribute( *iter, QVariant( mEncoding->toUnicode( cstr ) ) );
feature->addAttribute( *iter, convertValue( mLayers[mLayerId].fields[*iter].type(), mEncoding->toUnicode( cstr ) ) );
}
else /* it may happen that attributes are missing -> set to empty string */
{
Expand Down

0 comments on commit 43216f9

Please sign in to comment.