We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f4d9514 commit 538b7c9Copy full SHA for 538b7c9
src/core/qgsapplication.cpp
@@ -702,8 +702,20 @@ QStringList QgsApplication::svgPaths()
702
myPathList = myPaths.split( '|' );
703
}
704
705
- myPathList << ABISYM( mDefaultSvgPaths );
706
- return myPathList;
+ // maintain user set order while stripping duplicates
+ QStringList paths;
707
+ Q_FOREACH ( const QString& path, myPathList )
708
+ {
709
+ if ( !paths.contains( path ) )
710
+ paths.append( path );
711
+ }
712
+ Q_FOREACH ( const QString& path, ABISYM( mDefaultSvgPaths ) )
713
714
715
716
717
+
718
+ return paths;
719
720
721
/*!
0 commit comments