Skip to content
Permalink
Browse files

[composer] Prevent atlas crash when layer has bad features (refs #11037)

  • Loading branch information
nyalldawson committed Aug 13, 2014
1 parent 3e9ab60 commit 1a5db863d6da781c656162c12155d52ad1333537
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/composer/qgsatlascomposition.cpp
@@ -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

0 comments on commit 1a5db86

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