Skip to content
Permalink
Browse files

fix insert at position

  • Loading branch information
3nids committed May 14, 2020
1 parent 714352c commit 8f9fbba391c315dd95e5b4d825dfc965914e2623
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsbasemappathregistry.cpp
@@ -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 );

0 comments on commit 8f9fbba

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