Skip to content

Commit

Permalink
fix precise build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 4, 2015
1 parent b316140 commit e497e8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/core/testqgslegendrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void TestQgsLegendRenderer::testFilterByPolygon()
mapSettings.setOutputSize( QSize( 400, 100 ) );
mapSettings.setOutputDpi( 96 );
QStringList ll;
foreach ( auto l, QgsMapLayerRegistry::instance()->mapLayers() )
foreach ( QgsMapLayer *l, QgsMapLayerRegistry::instance()->mapLayers() )
{
ll << l->id();
}
Expand Down Expand Up @@ -395,15 +395,15 @@ void TestQgsLegendRenderer::testFilterByExpression()
mapSettings.setOutputSize( QSize( 400, 100 ) );
mapSettings.setOutputDpi( 96 );
QStringList ll;
foreach ( auto l, QgsMapLayerRegistry::instance()->mapLayers() )
foreach ( QgsMapLayer *l, QgsMapLayerRegistry::instance()->mapLayers() )
{
ll << l->id();
}
mapSettings.setLayers( ll );

// use an expression to only include the red point
QgsLayerTreeUtils::setLegendFilterByExpression( *legendModel.rootGroup()->findLayer( mVL3->id() ), "test_attr=1" );

legendModel.setLegendFilterByMap( &mapSettings );

QgsLegendSettings settings;
Expand Down

0 comments on commit e497e8b

Please sign in to comment.