Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9065 from alexbruy/fix-paste
fix pasting features into vector layer from clipboard (fix #21154)
  • Loading branch information
m-kuhn committed Feb 7, 2019
2 parents dfa1680 + b38b39c commit 98ec323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8997,7 +8997,7 @@ void QgisApp::pasteFromClipboard( QgsMapLayer *destinationLayer )
}

QgsAttributeMap attrMap;
for ( int i = 0; i < feature.fields().count(); i++ )
for ( int i = 0; i < feature.attributes().count(); i++ )
{
attrMap[i] = feature.attribute( i );
}
Expand Down

0 comments on commit 98ec323

Please sign in to comment.