Skip to content

Commit

Permalink
Fix settings key
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 3, 2024
1 parent 6aa3c4e commit 0e85dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/maprenderer/qgsmaprendererjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#include "qgsmeshlayerlabeling.h"

const QgsSettingsEntryBool *QgsMapRendererJob::settingsLogCanvasRefreshEvent = new QgsSettingsEntryBool( QStringLiteral( "logCanvasRefreshEvent" ), QgsSettingsTree::sTreeMap, false );
const QgsSettingsEntryString *QgsMapRendererJob::settingsMaskBackend = new QgsSettingsEntryString( QStringLiteral( "maskBackend" ), QgsSettingsTree::sTreeMap, QString(), QStringLiteral( "Backend engine to use for selective masking" ) );
const QgsSettingsEntryString *QgsMapRendererJob::settingsMaskBackend = new QgsSettingsEntryString( QStringLiteral( "mask-backend" ), QgsSettingsTree::sTreeMap, QString(), QStringLiteral( "Backend engine to use for selective masking" ) );

///@cond PRIVATE

Expand Down
4 changes: 2 additions & 2 deletions tests/src/python/test_selective_masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ def control_path_prefix(cls):

@classmethod
def setUpClass(cls):
QgsSettings().setValue('map/maskBackend', 'qpainterpath')
QgsSettings().setValue('map/mask-backend', 'qpainterpath')
QgisTestCase.setUpClass()

def setUp(self):
Expand All @@ -1373,7 +1373,7 @@ def control_path_prefix(cls):

@classmethod
def setUpClass(cls):
QgsSettings().setValue('map/maskBackend', 'geometry')
QgsSettings().setValue('map/mask-backend', 'geometry')
QgisTestCase.setUpClass()

def setUp(self):
Expand Down

0 comments on commit 0e85dde

Please sign in to comment.