mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Copy attribute values for feature splits. Fixes bug #1381
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9741 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
d97dfd7c7f
commit
204a5c6cf4
@ -1714,7 +1714,15 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& splitLine, bool topolo
|
||||
}
|
||||
}
|
||||
|
||||
select( QgsAttributeList(), bBox, true, true );
|
||||
//we need the feature attributes because the attributes values
|
||||
//are copied to the new features
|
||||
QgsAttributeList attributes;
|
||||
if(mDataProvider)
|
||||
{
|
||||
attributes = mDataProvider->attributeIndexes();
|
||||
}
|
||||
attributes += mAddedAttributeIds.toList();
|
||||
select( attributes, bBox, true, true );
|
||||
|
||||
QgsFeature f;
|
||||
while ( nextFeature( f ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user