mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix failing atlas tests
This commit is contained in:
parent
3af68f4888
commit
6138131366
@ -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<double> scales;
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 43 KiB |
Binary file not shown.
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 47 KiB |
Loading…
x
Reference in New Issue
Block a user