Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Less debug noise when rendering svg files
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
src/core/symbology/qgssymbollayerutils.cpp
|
@@ -3693,18 +3693,18 @@ QString QgsSymbolLayerUtils::svgSymbolNameToPath( QString name, const QgsPathRes |
|
|
svgPath.chop( 1 ); |
|
|
} |
|
|
|
|
|
QgsDebugMsg( "SvgPath: " + svgPath ); |
|
|
QgsDebugMsgLevel( "SvgPath: " + svgPath, 3 ); |
|
|
// Not sure why to lowest dir was used instead of full relative path, it was causing #8664 |
|
|
//QFileInfo myInfo( name ); |
|
|
//QString myFileName = myInfo.fileName(); // foo.svg |
|
|
//QString myLowestDir = myInfo.dir().dirName(); |
|
|
//QString myLocalPath = svgPath + QString( myLowestDir.isEmpty() ? "" : '/' + myLowestDir ) + '/' + myFileName; |
|
|
QString myLocalPath = svgPath + QDir::separator() + name; |
|
|
|
|
|
QgsDebugMsg( "Alternative svg path: " + myLocalPath ); |
|
|
QgsDebugMsgLevel( "Alternative svg path: " + myLocalPath, 3 ); |
|
|
if ( QFile( myLocalPath ).exists() ) |
|
|
{ |
|
|
QgsDebugMsg( "Svg found in alternative path" ); |
|
|
QgsDebugMsgLevel( "Svg found in alternative path", 3 ); |
|
|
return QFileInfo( myLocalPath ).canonicalFilePath(); |
|
|
} |
|
|
} |
|
|