Skip to content
Permalink
Browse files

fix server build, follow up 772f593 again

sorry for the noise
  • Loading branch information
3nids committed Aug 8, 2016
1 parent 5baa9a4 commit 313a049c15e16040fa95cfe3ac4ef6cae63fb5b2
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/server/qgswmsconfigparser.cpp
  2. +1 −1 src/server/qgswmsprojectparser.cpp
@@ -202,7 +202,7 @@ QgsComposition* QgsWmsConfigParser::createPrintComposition( const QString& compo
{
if (( *legendIt )->autoUpdateModel() )
{
setLayerIdsToLegendModel(( *legendIt )->modelV2(), bkLayerSet, currentMap->scale() );
setLayerIdsToLegendModel(( *legendIt )->model(), bkLayerSet, currentMap->scale() );
}
}

@@ -231,7 +231,7 @@ QgsComposition* QgsWmsConfigParser::createPrintComposition( const QString& compo
}

// get model and layer tree root of the legend
QgsLegendModelV2* model = currentLegend->modelV2();
QgsLegendModelV2* model = currentLegend->model();
QStringList layerSet = map->layerSet();
setLayerIdsToLegendModel( model, layerSet, map->scale() );
}
@@ -518,7 +518,7 @@ QgsComposition* QgsWmsProjectParser::initComposition( const QString& composerTem
QgsComposerLegend* legend = dynamic_cast< QgsComposerLegend *>( *itemIt );
if ( legend )
{
QgsLegendModelV2* model = legend->modelV2();
QgsLegendModelV2* model = legend->model();
#if 0
QgsLayerTreeGroup* root = model->rootGroup();
QStringList layerIds = root->findLayerIds();

0 comments on commit 313a049

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