File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ class CORE_EXPORT QgsRuleBasedLabeling : public QgsAbstractVectorLayerLabeling
239
239
/* *
240
240
* Create a rule from an XML definition
241
241
* \param ruleElem The XML rule element
242
+ * \param context reading context
242
243
* \returns A new rule
243
244
*/
244
245
static Rule *create ( const QDomElement &ruleElem, const QgsReadWriteContext &context );
Original file line number Diff line number Diff line change @@ -213,6 +213,10 @@ void TestQgsProject::testPathResolverSvg()
213
213
project.addMapLayers ( QList<QgsMapLayer *>() << layer1 << layer2 << layer3 );
214
214
project.write ( projectFilename );
215
215
216
+ // make sure the path resolver works with relative paths (enabled by default)
217
+ QCOMPARE ( project.pathResolver ().readPath ( " ./a.txt" ), dir.path () + " /a.txt" );
218
+ QCOMPARE ( project.pathResolver ().writePath ( dir.path () + " /a.txt" ), QString ( " ./a.txt" ) );
219
+
216
220
// check that the saved paths are relative
217
221
218
222
// key = layer name, value = svg path
You can’t perform that action at this time.
0 commit comments