File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 38
38
#include " qgsgenericprojectionselector.h"
39
39
#include " qgsproject.h"
40
40
#include " qgsvisibilitypresetcollection.h"
41
+ #include " qgsvisibilitypresets.h"
41
42
#include " qgisgui.h"
42
43
43
44
#include < QMessageBox>
@@ -302,7 +303,7 @@ void QgsComposerMapWidget::aboutToShowVisibilityPresetsMenu()
302
303
{
303
304
QAction* a = menu->addAction ( presetName, this , SLOT ( visibilityPresetSelected () ) );
304
305
a->setCheckable ( true );
305
- QStringList layers = QgsProject ::instance ()->visibilityPresetCollection ()-> presetVisibleLayers ( presetName );
306
+ QStringList layers = QgsVisibilityPresets ::instance ()->orderedPresetVisibleLayers ( presetName );
306
307
QMap<QString, QString> styles = QgsProject::instance ()->visibilityPresetCollection ()->presetStyleOverrides ( presetName );
307
308
if ( layers == mComposerMap ->layerSet () && styles == mComposerMap ->layerStyleOverrides () )
308
309
a->setChecked ( true );
@@ -319,7 +320,7 @@ void QgsComposerMapWidget::visibilityPresetSelected()
319
320
return ;
320
321
321
322
QString presetName = action->text ();
322
- QStringList lst = QgsProject ::instance ()->visibilityPresetCollection ()-> presetVisibleLayers ( presetName );
323
+ QStringList lst = QgsVisibilityPresets ::instance ()->orderedPresetVisibleLayers ( presetName );
323
324
if ( mComposerMap )
324
325
{
325
326
mKeepLayerListCheckBox ->setChecked ( true );
You can’t perform that action at this time.
0 commit comments