Skip to content
Permalink
Browse files

Merge pull request #516 from Oslandia/atlas

Fix qgsatlascomposition constructor and related Atlas unit tests
  • Loading branch information
mhugent committed Apr 13, 2013
2 parents 736f765 + f0dd138 commit f0132dcc6e2a4882dd7daa7df74dd5aacb9a63c9
@@ -32,7 +32,8 @@ QgsAtlasComposition::QgsAtlasComposition( QgsComposition* composition ) :
mComposerMap( 0 ),
mHideCoverage( false ), mFixedScale( false ), mMargin( 0.10 ), mFilenamePattern( "'output_'||$feature" ),
mCoverageLayer( 0 ), mSingleFile( false ),
mSortFeatures( false ), mSortAscending( true ), mFeatureFilter( "" )
mSortFeatures( false ), mSortAscending( true ),
mFilterFeatures( false ), mFeatureFilter( "" )
{

// declare special columns with a default value
@@ -261,6 +261,7 @@ void TestQgsAtlasComposition::filtering_render()

mAtlas->setSortFeatures( false );

mAtlas->setFilterFeatures( true );
mAtlas->setFeatureFilter( "substr(NAME_1,1,1)='P'" ); // select only 'Pays de la Loire'

mAtlas->beginRender();
@@ -195,6 +195,7 @@ def filtering_render_test( self ):

self.mAtlas.setSortFeatures( False )

self.mAtlas.setFilterFeatures( True )
self.mAtlas.setFeatureFilter( "substr(NAME_1,1,1)='P'" ) # select only 'Pays de la loire'

self.mAtlas.beginRender()

0 comments on commit f0132dc

Please sign in to comment.
You can’t perform that action at this time.