Skip to content

Commit

Permalink
Fix north arrow with embedded svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 23, 2018
1 parent 959dd5b commit 2fc366c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsdecorationnortharrow.cpp
Expand Up @@ -93,6 +93,9 @@ void QgsDecorationNorthArrow::run()

QString QgsDecorationNorthArrow::svgPath()
{
if ( mSvgPath.startsWith( QStringLiteral( "base64:" ), Qt::CaseInsensitive ) )
return mSvgPath;

if ( !mSvgPath.isEmpty() )
{
QString resolvedPath = QgsSymbolLayerUtils::svgSymbolNameToPath( mSvgPath, QgsProject::instance()->pathResolver() );
Expand Down

0 comments on commit 2fc366c

Please sign in to comment.