Skip to content
Permalink
Browse files

Search also in root dirs of svg search paths

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11845 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Oct 26, 2009
1 parent e8b1b6e commit 1df64b665931678b9f901d1b856e328fb1214e0f
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/core/symbology/qgsmarkercatalogue.cpp
@@ -77,9 +77,20 @@ void QgsMarkerCatalogue::refreshList()
// TODO recursive ?
QDir dir( svgPaths[i] );

//
// First check the root dir of this path for svgs
//
QStringList dl1 = dir.entryList( QStringList( "*.svg" ), QDir::Files );
for ( QStringList::iterator it1 = dl1.begin(); it1 != dl1.end(); ++it1 )
{
// TODO test if it is correct SVG
mList.append( "svg:" + dir.path() + "/" + *it1 );
}

//
// Now check in any nested dirs for svgs
//
QStringList dl = dir.entryList( QDir::Dirs );

for ( QStringList::iterator it = dl.begin(); it != dl.end(); ++it )
{
QgsDebugMsg( QString( "Looking for svgs in %1" ).arg( svgPaths[i] + *it ) );

0 comments on commit 1df64b6

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