Skip to content

Commit 44a2e73

Browse files
author
mhugent
committed
More elegant solution for last commit (as suggested by Juergen)
git-svn-id: http://svn.osgeo.org/qgis/trunk@9742 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6d85e2d commit 44a2e73

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,15 +1714,7 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& splitLine, bool topolo
17141714
}
17151715
}
17161716

1717-
//we need the feature attributes because the attributes values
1718-
//are copied to the new features
1719-
QgsAttributeList attributes;
1720-
if(mDataProvider)
1721-
{
1722-
attributes = mDataProvider->attributeIndexes();
1723-
}
1724-
attributes += mAddedAttributeIds.toList();
1725-
select( attributes, bBox, true, true );
1717+
select( pendingAllAttributesList(), bBox, true, true );
17261718

17271719
QgsFeature f;
17281720
while ( nextFeature( f ) )

0 commit comments

Comments
 (0)