Skip to content
Permalink
Browse files

fix precise build

  • Loading branch information
jef-n committed Nov 4, 2015
1 parent b316140 commit e497e8b1c01e30af4e23118dcab23961eba077c1
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/core/testqgslegendrenderer.cpp
@@ -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();
}
@@ -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;

0 comments on commit e497e8b

Please sign in to comment.