Skip to content
Permalink
Browse files

spatialite provider: fix retrieval of unicode name of spatial index o…

…n views
  • Loading branch information
jef-n committed Jul 6, 2018
1 parent 870d078 commit fbb0b460842727c695308a91120aecd825d835fe
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -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;
}
}
@@ -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" )
{

0 comments on commit fbb0b46

Please sign in to comment.
You can’t perform that action at this time.