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 0ddc034 commit 149b24cCopy full SHA for 149b24c
src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -894,18 +894,23 @@ QString QgsSvgMarkerSymbolLayerV2::symbolPathToName( QString path )
894
895
QStringList svgPaths = QgsApplication::svgPaths();
896
897
+ bool isInSvgPathes = false;
898
for ( int i = 0; i < svgPaths.size(); i++ )
899
{
900
QString dir = QFileInfo( svgPaths[i] ).canonicalFilePath();
901
902
if ( !dir.isEmpty() && path.startsWith( dir ) )
903
904
path = path.mid( dir.size() );
905
+ isInSvgPathes = true;
906
break;
907
}
908
909
- return path;
910
+ if ( isInSvgPathes )
911
+ return path;
912
+
913
+ return QgsProject::instance()->writePath( path );
914
915
916
0 commit comments