From b38b39cb43bffa80687a4742c3d7ef0f390eaeed Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Fri, 1 Feb 2019 16:01:30 +0200 Subject: [PATCH] fix pasting features into vector layer from clipboard (fix #21154) --- src/app/qgisapp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 576e5303bae..4054e95a72b 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -8995,7 +8995,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 ); }