mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-22 00:06:57 -04:00
Moved comment
This commit is contained in:
parent
443d860061
commit
4c8280a5f8
@ -9021,11 +9021,11 @@ void QgisApp::pasteFromClipboard( QgsMapLayer *destinationLayer )
|
||||
{
|
||||
attrMap[i] = feature.attribute( i );
|
||||
}
|
||||
// now create new feature using pasted feature as a template. This automatically handles default
|
||||
// values and field constraints
|
||||
newFeaturesDataList << QgsVectorLayerUtils::QgsFeatureData( geom, attrMap );
|
||||
}
|
||||
|
||||
// now create new feature using pasted feature as a template. This automatically handles default
|
||||
// values and field constraints
|
||||
QgsFeatureList newFeatures {QgsVectorLayerUtils::createFeatures( pasteVectorLayer, newFeaturesDataList, &context )};
|
||||
pasteVectorLayer->addFeatures( newFeatures );
|
||||
QgsFeatureIds newIds;
|
||||
|
Loading…
x
Reference in New Issue
Block a user