Skip to content

Commit 98ec323

Browse files
authoredFeb 7, 2019
Merge pull request #9065 from alexbruy/fix-paste
fix pasting features into vector layer from clipboard (fix #21154)
2 parents dfa1680 + b38b39c commit 98ec323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8997,7 +8997,7 @@ void QgisApp::pasteFromClipboard( QgsMapLayer *destinationLayer )
89978997
}
89988998

89998999
QgsAttributeMap attrMap;
9000-
for ( int i = 0; i < feature.fields().count(); i++ )
9000+
for ( int i = 0; i < feature.attributes().count(); i++ )
90019001
{
90029002
attrMap[i] = feature.attribute( i );
90039003
}

0 commit comments

Comments
 (0)
Please sign in to comment.