Skip to content

Commit

Permalink
Fix failing atlas tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 21, 2014
1 parent 3af68f4 commit 6138131
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/src/core/testqgsatlascomposition.cpp
Expand Up @@ -243,16 +243,17 @@ void TestQgsAtlasComposition::autoscale_render_2_0_api()
}
mAtlas->endRender();
Q_NOWARN_DEPRECATED_PUSH
mAtlas->setComposerMap( 0 );
mAtlas->setFixedScale( false );
mAtlas->setMargin( 0 );
mAtlas->setComposerMap( 0 );
mAtlasMap->setAtlasDriven( false );
Q_NOWARN_DEPRECATED_POP
}

void TestQgsAtlasComposition::fixedscale_render()
{
mAtlasMap->setAtlasDriven( true );
mAtlasMap->setNewExtent( QgsRectangle( 209838.166, 6528781.020, 610491.166, 6920530.620 ) );
mAtlasMap->setAtlasDriven( true );
mAtlasMap->setAtlasScalingMode( QgsComposerMap::Fixed );

mAtlas->beginRender();
Expand Down Expand Up @@ -289,15 +290,17 @@ void TestQgsAtlasComposition::fixedscale_render_2_0_api()
}
mAtlas->endRender();
Q_NOWARN_DEPRECATED_PUSH
mAtlas->setComposerMap( 0 );
mAtlas->setFixedScale( false );
mAtlas->setComposerMap( 0 );
mAtlasMap->setAtlasDriven( false );

Q_NOWARN_DEPRECATED_POP
}

void TestQgsAtlasComposition::predefinedscales_render()
{
mAtlasMap->setAtlasDriven( true );
mAtlasMap->setNewExtent( QgsRectangle( 209838.166, 6528781.020, 610491.166, 6920530.620 ) );
mAtlasMap->setAtlasDriven( true );
mAtlasMap->setAtlasScalingMode( QgsComposerMap::Predefined );

QVector<double> scales;
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6138131

Please sign in to comment.