Skip to content
Permalink
Browse files
only encode to unicode once
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 16814799d06adbc4a02e0a7d247cf0be5a8a7718
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -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;
@@ -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;

0 comments on commit 1681479

Please sign in to comment.