Skip to content
Permalink
Browse files

Moved comment

  • Loading branch information
elpaso committed Feb 20, 2019
1 parent 443d860 commit 4c8280a5f8090de506c03bad5e45637d8342e873
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 4c8280a

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