Skip to content

Commit

Permalink
fix pasting features into vector layer from clipboard (fix #21154)
Browse files Browse the repository at this point in the history
(cherry picked from commit b38b39c)
  • Loading branch information
alexbruy committed Feb 17, 2019
1 parent cb3e909 commit b2ee8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8801,7 +8801,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 b2ee8c0

Please sign in to comment.