We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ade01f5 + 974b9f3 commit 247836bCopy full SHA for 247836b
src/core/symbology-ng/qgssymbollayerv2utils.cpp
@@ -3807,9 +3807,8 @@ QString QgsSymbolLayerV2Utils::symbolNameToPath( QString name )
3807
}
3808
3809
3810
- QFileInfo pfi( QgsProject::instance()->fileName() );
3811
- QString alternatePath = pfi.canonicalPath() + QDir::separator() + name;
3812
- if ( pfi.exists() && QFile( alternatePath ).exists() )
+ QString alternatePath = QgsProject::instance()->readPath( name );
+ if ( QFile( alternatePath ).exists() )
3813
{
3814
QgsDebugMsg( "Svg found in alternative path" );
3815
return QFileInfo( alternatePath ).canonicalFilePath();
0 commit comments