Skip to content
Permalink
Browse files

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

…n views

(cherry picked from commit fbb0b46)
  • Loading branch information
jef-n committed Jul 6, 2018
1 parent 7db1535 commit 9aab40e4bf16507db75bed6d7eb610d2559d7e0e
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -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;
}
}
@@ -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" ) )
{

0 comments on commit 9aab40e

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