[QGIS Commit] r8295 - trunk/qgis/src/providers/ogr

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Mar 28 16:09:06 EDT 2008


Author: jef
Date: 2008-03-28 16:09:06 -0400 (Fri, 28 Mar 2008)
New Revision: 8295

Modified:
   trunk/qgis/src/providers/ogr/qgsogrprovider.cpp
Log:
only encode to unicode once

Modified: trunk/qgis/src/providers/ogr/qgsogrprovider.cpp
===================================================================
--- trunk/qgis/src/providers/ogr/qgsogrprovider.cpp	2008-03-28 20:00:21 UTC (rev 8294)
+++ trunk/qgis/src/providers/ogr/qgsogrprovider.cpp	2008-03-28 20:09:06 UTC (rev 8295)
@@ -1292,7 +1292,7 @@
     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 @@
     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;



More information about the QGIS-commit mailing list