Skip to content

Commit

Permalink
[composer] Refresh attribute table filter when atlas feature changes (f…
Browse files Browse the repository at this point in the history
…ix #10651)
  • Loading branch information
nyalldawson committed Jun 23, 2014
1 parent cd3bdd7 commit 787f1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/composer/qgscomposerattributetable.cpp
Expand Up @@ -121,6 +121,9 @@ QgsComposerAttributeTable::QgsComposerAttributeTable( QgsComposition* compositio
{
//refresh table attributes when composition is refreshed
connect( mComposition, SIGNAL( refreshItemsTriggered() ), this, SLOT( refreshAttributes() ) );

//connect to atlas feature changes to update table rows
connect( &mComposition->atlasComposition(), SIGNAL( featureChanged( QgsFeature* ) ), this, SLOT( refreshAttributes() ) );
}
}

Expand Down Expand Up @@ -405,7 +408,7 @@ bool QgsComposerAttributeTable::getFeatureAttributes( QList<QgsAttributeMap> &at
if ( !selectionRect.isEmpty() )
req.setFilterRect( selectionRect );

req.setFlags( mShowOnlyVisibleFeatures ? QgsFeatureRequest::ExactIntersect : QgsFeatureRequest::NoGeometry );
req.setFlags( mShowOnlyVisibleFeatures ? QgsFeatureRequest::ExactIntersect : QgsFeatureRequest::NoFlags );

QgsFeature f;
int counter = 0;
Expand Down

0 comments on commit 787f1a6

Please sign in to comment.