Skip to content

Commit

Permalink
Also show features with modified geometry when "show edited and new
Browse files Browse the repository at this point in the history
features" filter is active in attribute dialog (fix #11684)

(cherry-picked from e92e910)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent 2ed4fb0 commit d028258
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/attributetable/qgsattributetablefiltermodel.cpp
Expand Up @@ -189,8 +189,9 @@ bool QgsAttributeTableFilterModel::filterAcceptsRow( int sourceRow, const QModel
{
const QList<QgsFeatureId> addedFeatures = editBuffer->addedFeatures().keys();
const QList<QgsFeatureId> changedFeatures = editBuffer->changedAttributeValues().keys();
const QList<QgsFeatureId> changedGeometries = editBuffer->changedGeometries().keys();
const QgsFeatureId fid = masterModel()->rowToId( sourceRow );
return addedFeatures.contains( fid ) || changedFeatures.contains( fid );
return addedFeatures.contains( fid ) || changedFeatures.contains( fid ) || changedGeometries.contains( fid );
}
return false;
}
Expand Down

0 comments on commit d028258

Please sign in to comment.