Skip to content

Commit

Permalink
[composer] Prevent atlas crash when layer has bad features (refs #11037)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 13, 2014
1 parent 3e9ab60 commit 1a5db86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/composer/qgsatlascomposition.cpp
Expand Up @@ -372,6 +372,12 @@ bool QgsAtlasComposition::prepareForFeature( int featureI )
emit featureChanged( &mCurrentFeature );
emit statusMsgChanged( QString( tr( "Atlas feature %1 of %2" ) ).arg( featureI + 1 ).arg( mFeatureIds.size() ) );

if ( !mCurrentFeature.isValid() )
{
//bad feature
return true;
}

//update composer maps

//build a list of atlas-enabled composer maps
Expand Down

0 comments on commit 1a5db86

Please sign in to comment.