Skip to content
Permalink
Browse files

Shutup more annoying Qt warnings

  • Loading branch information
nyalldawson committed May 1, 2018
1 parent 0449874 commit cec59c0c3966dd278f846fe4e0660d05d2de3ccb
Showing with 5 additions and 0 deletions.
  1. +3 −0 src/core/symbology/qgssymbollayerutils.cpp
  2. +2 −0 tests/src/core/testqgsproject.cpp
@@ -3655,6 +3655,9 @@ QStringList QgsSymbolLayerUtils::listSvgFilesAt( const QString &directory )

QString QgsSymbolLayerUtils::svgSymbolNameToPath( QString name, const QgsPathResolver &pathResolver )
{
if ( name.isEmpty() )
return QString();

// we might have a full path...
if ( QFileInfo::exists( name ) )
return QFileInfo( name ).canonicalFilePath();
@@ -212,6 +212,8 @@ void TestQgsProject::testPathResolverSvg()
QString dataDir( TEST_DATA_DIR ); //defined in CmakeLists.txt
QString layerPath = dataDir + "/points.shp";

QVERIFY( QgsSymbolLayerUtils::svgSymbolNameToPath( QString(), QgsPathResolver() ).isEmpty() );

// build a project with 3 layers, each having a simple renderer with SVG marker
// - existing SVG file in project dir
// - existing SVG file in QGIS dir

0 comments on commit cec59c0

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