Skip to content
Permalink
Browse files

Less debug noise when rendering svg files

  • Loading branch information
nyalldawson committed Mar 6, 2018
1 parent f76cb58 commit 2bc30c7365e572a3ea46257c311f2a6cc945be41
Showing with 3 additions and 3 deletions.
  1. +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();
}
}

0 comments on commit 2bc30c7

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