Skip to content
Permalink
Browse files

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
  • Loading branch information
mhugent
mhugent committed Dec 4, 2008
1 parent d97dfd7 commit 204a5c6cf430080ea5398da5b4da422a9a1a444e
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/core/qgsvectorlayer.cpp
@@ -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 ) )

0 comments on commit 204a5c6

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