Skip to content

Commit

Permalink
fix insert at position
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 19, 2020
1 parent 714352c commit 8f9fbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsbasemappathregistry.cpp
Expand Up @@ -70,7 +70,7 @@ void QgsBasemapPathRegistry::registerPath( const QString &path, int position )
if ( mPaths.contains( dir ) )
return;

if ( position > 0 && position < mPaths.count() )
if ( position >= 0 && position < mPaths.count() )
mPaths.insert( position, dir );
else
mPaths.append( dir );
Expand Down

0 comments on commit 8f9fbba

Please sign in to comment.