Skip to content

Commit

Permalink
Merge pull request #3565 from nyalldawson/svg_background
Browse files Browse the repository at this point in the history
Fix SVG preview blocks QGIS (fix #14255)
  • Loading branch information
nyalldawson authored Oct 4, 2016
2 parents 7332dda + 3abded3 commit 0b68363
Show file tree
Hide file tree
Showing 6 changed files with 474 additions and 224 deletions.
16 changes: 14 additions & 2 deletions src/core/qgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,20 @@ QStringList QgsApplication::svgPaths()
myPathList = myPaths.split( '|' );
}

myPathList << ABISYM( mDefaultSvgPaths );
return myPathList;
// maintain user set order while stripping duplicates
QStringList paths;
Q_FOREACH ( const QString& path, myPathList )
{
if ( !paths.contains( path ) )
paths.append( path );
}
Q_FOREACH ( const QString& path, ABISYM( mDefaultSvgPaths ) )
{
if ( !paths.contains( path ) )
paths.append( path );
}

return paths;
}

/*!
Expand Down
Loading

0 comments on commit 0b68363

Please sign in to comment.