Skip to content

Commit

Permalink
only encode to unicode once
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8295 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 28, 2008
1 parent 90e8d1e commit 1681479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ QVariant QgsOgrProvider::minValue(int index)
return QVariant();
}

QString str = mEncoding->toUnicode( mEncoding->toUnicode( OGR_F_GetFieldAsString(f,0) ) );
QString str = mEncoding->toUnicode( OGR_F_GetFieldAsString(f,0) );
OGR_F_Destroy(f);

QVariant value;
Expand Down Expand Up @@ -1331,7 +1331,7 @@ QVariant QgsOgrProvider::maxValue(int index)
return QVariant();
}

QString str = mEncoding->toUnicode( mEncoding->toUnicode( OGR_F_GetFieldAsString(f,0) ) );
QString str = mEncoding->toUnicode( OGR_F_GetFieldAsString(f,0) );
OGR_F_Destroy(f);

QVariant value;
Expand Down

0 comments on commit 1681479

Please sign in to comment.