Skip to content

Commit

Permalink
Less debug noise when rendering svg files
Browse files Browse the repository at this point in the history
(cherry-picked from 2bc30c7)
  • Loading branch information
nyalldawson committed Mar 9, 2018
1 parent c1c00c9 commit f0aba28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/symbology/qgssymbollayerutils.cpp
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit f0aba28

Please sign in to comment.