Skip to content

Commit fbb0b46

Browse files
committedJul 6, 2018
spatialite provider: fix retrieval of unicode name of spatial index on views
1 parent 870d078 commit fbb0b46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/providers/spatialite/qgsspatialiteprovider.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -4496,8 +4496,8 @@ void QgsSpatiaLiteProvider::getViewSpatialIndexName()
44964496
{
44974497
for ( i = 1; i <= rows; i++ )
44984498
{
4499-
mIndexTable = results[( i * columns ) + 0];
4500-
mIndexGeometry = results[( i * columns ) + 1];
4499+
mIndexTable = QString::fromUtf8(( const char * ) results[( i * columns ) + 0] );
4500+
mIndexGeometry = QString::fromUtf8(( const char * ) results[( i * columns ) + 1] );
45014501
mSpatialIndexRTree = true;
45024502
}
45034503
}
@@ -4660,8 +4660,8 @@ bool QgsSpatiaLiteProvider::getViewGeometryDetails()
46604660
QString fType = results[( i * columns ) + 0];
46614661
QString xSrid = results[( i * columns ) + 1];
46624662
QString spatialIndex = results[( i * columns ) + 2];
4663-
mIndexTable = results[( i * columns ) + 3];
4664-
mIndexGeometry = results[( i * columns ) + 4];
4663+
mIndexTable = QString::fromUtf8(( const char * ) results[( i * columns ) + 3] );
4664+
mIndexGeometry = QString::fromUtf8(( const char * ) results[( i * columns ) + 4] );
46654665

46664666
if ( fType == "POINT" )
46674667
{

0 commit comments

Comments
 (0)
Please sign in to comment.