Skip to content
Permalink
Browse files
Fix build and add bits to project test to understand fail on mac
  • Loading branch information
wonder-sk committed May 13, 2017
1 parent 8dd5886 commit dfcfadc70ac6f2bfcdffd876c324960d3b28cb2b
Showing with 5 additions and 0 deletions.
  1. +1 −0 src/core/qgsrulebasedlabeling.h
  2. +4 −0 tests/src/core/testqgsproject.cpp
@@ -239,6 +239,7 @@ class CORE_EXPORT QgsRuleBasedLabeling : public QgsAbstractVectorLayerLabeling
/**
* Create a rule from an XML definition
* \param ruleElem The XML rule element
* \param context reading context
* \returns A new rule
*/
static Rule *create( const QDomElement &ruleElem, const QgsReadWriteContext &context );
@@ -213,6 +213,10 @@ void TestQgsProject::testPathResolverSvg()
project.addMapLayers( QList<QgsMapLayer *>() << layer1 << layer2 << layer3 );
project.write( projectFilename );

// make sure the path resolver works with relative paths (enabled by default)
QCOMPARE( project.pathResolver().readPath( "./a.txt" ), dir.path() + "/a.txt" );
QCOMPARE( project.pathResolver().writePath( dir.path() + "/a.txt" ), QString( "./a.txt" ) );

// check that the saved paths are relative

// key = layer name, value = svg path

0 comments on commit dfcfadc

Please sign in to comment.