Skip to content
Permalink
Browse files

Also show features with modified geometry when "show edited and new

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 d028258cd152a00875e1636fe36999064c9c6891
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/attributetable/qgsattributetablefiltermodel.cpp
@@ -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;
}

0 comments on commit d028258

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