Skip to content
Permalink
Browse files

Fix qt warning raised while constructing some forms of layer URIs

due to accessing character position past end of string
  • Loading branch information
nyalldawson committed Nov 20, 2020
1 parent 502f420 commit 78825cf29707de545f1d01add459b5833e6b7725
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsdatasourceuri.cpp
@@ -89,7 +89,7 @@ QgsDataSourceUri::QgsDataSourceUri( const QString &u )
mTable = pval;
}

if ( uri[i] == '(' )
if ( i < uri.length() && uri[i] == '(' )
{
i++;

0 comments on commit 78825cf

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