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
  • Loading branch information
jef-n committed Jul 6, 2018
1 parent 870d078 commit fbb0b46
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 @@ -4496,8 +4496,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 @@ -4660,8 +4660,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 == "POINT" )
{
Expand Down

0 comments on commit fbb0b46

Please sign in to comment.