From 4c8280a5f8090de506c03bad5e45637d8342e873 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Wed, 20 Feb 2019 10:10:40 +0100 Subject: [PATCH] Moved comment --- src/app/qgisapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 5ffaa6fe78e..60594eaafb4 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -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;