Skip to content

Commit b2ee8c0

Browse files
committedFeb 17, 2019
fix pasting features into vector layer from clipboard (fix #21154)
(cherry picked from commit b38b39c)
1 parent cb3e909 commit b2ee8c0

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
@@ -8801,7 +8801,7 @@ void QgisApp::pasteFromClipboard( QgsMapLayer *destinationLayer )
88018801
}
88028802

88038803
QgsAttributeMap attrMap;
8804-
for ( int i = 0; i < feature.fields().count(); i++ )
8804+
for ( int i = 0; i < feature.attributes().count(); i++ )
88058805
{
88068806
attrMap[i] = feature.attribute( i );
88078807
}

0 commit comments

Comments
 (0)
Please sign in to comment.