diff --git a/src/core/qgsvectorlayer.cpp b/src/core/qgsvectorlayer.cpp index 1de932f1927..9fc770495f1 100644 --- a/src/core/qgsvectorlayer.cpp +++ b/src/core/qgsvectorlayer.cpp @@ -1714,7 +1714,15 @@ int QgsVectorLayer::splitFeatures( const QList& 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 ) )