Skip to content
Permalink
Browse files

fix #1707, take two

git-svn-id: http://svn.osgeo.org/qgis/trunk@11442 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 19, 2009
1 parent cf8d97c commit 80a9cef43612e9dda90f5afec8562bd6323efa72
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/grass/qgsgrassprovider.cpp
@@ -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 */
{
@@ -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 */
{

0 comments on commit 80a9cef

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