Skip to content

Commit

Permalink
Moved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 20, 2019
1 parent 443d860 commit 4c8280a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4c8280a

Please sign in to comment.