Skip to content

Commit

Permalink
spatialite provider: fix retrieval of unicode name of spatial index o…
Browse files Browse the repository at this point in the history
…n views

(cherry picked from commit fbb0b46)
  • Loading branch information
jef-n committed Jul 6, 2018
1 parent 7db1535 commit 9aab40e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4782,8 +4782,8 @@ void QgsSpatiaLiteProvider::getViewSpatialIndexName()
{
for ( i = 1; i <= rows; i++ )
{
mIndexTable = results[( i * columns ) + 0];
mIndexGeometry = results[( i * columns ) + 1];
mIndexTable = QString::fromUtf8(( const char * ) results[( i * columns ) + 0] );
mIndexGeometry = QString::fromUtf8(( const char * ) results[( i * columns ) + 1] );
mSpatialIndexRTree = true;
}
}
Expand Down Expand Up @@ -4939,8 +4939,8 @@ bool QgsSpatiaLiteProvider::getViewGeometryDetails()
QString fType = results[( i * columns ) + 0];
QString xSrid = results[( i * columns ) + 1];
QString spatialIndex = results[( i * columns ) + 2];
mIndexTable = results[( i * columns ) + 3];
mIndexGeometry = results[( i * columns ) + 4];
mIndexTable = QString::fromUtf8(( const char * ) results[( i * columns ) + 3] );
mIndexGeometry = QString::fromUtf8(( const char * ) results[( i * columns ) + 4] );

if ( fType == QLatin1String( "POINT" ) )
{
Expand Down

0 comments on commit 9aab40e

Please sign in to comment.