diff --git a/tests/src/core/testqgsatlascomposition.cpp b/tests/src/core/testqgsatlascomposition.cpp index 0901d2a37e4..817b0b44cd2 100644 --- a/tests/src/core/testqgsatlascomposition.cpp +++ b/tests/src/core/testqgsatlascomposition.cpp @@ -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(); @@ -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 scales; diff --git a/tests/testdata/control_images/expected_atlas_fixedscale1/expected_atlas_fixedscale1.png b/tests/testdata/control_images/expected_atlas_fixedscale1/expected_atlas_fixedscale1.png index bd11d2c915d..650467477d8 100644 Binary files a/tests/testdata/control_images/expected_atlas_fixedscale1/expected_atlas_fixedscale1.png and b/tests/testdata/control_images/expected_atlas_fixedscale1/expected_atlas_fixedscale1.png differ diff --git a/tests/testdata/control_images/expected_atlas_fixedscale2/expected_atlas_fixedscale2.png b/tests/testdata/control_images/expected_atlas_fixedscale2/expected_atlas_fixedscale2.png index 5b18bf63ea2..687f19d9b42 100644 Binary files a/tests/testdata/control_images/expected_atlas_fixedscale2/expected_atlas_fixedscale2.png and b/tests/testdata/control_images/expected_atlas_fixedscale2/expected_atlas_fixedscale2.png differ