Update src/core/qgsvectorlayerutils.cpp

Co-Authored-By: elpaso <elpaso@itopen.it>
This commit is contained in:
Matthias Kuhn 2019-02-20 08:24:36 +01:00 committed by GitHub
parent d239ea2df9
commit f4d7e73a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,7 +485,7 @@ QgsFeatureList QgsVectorLayerUtils::createFeatures( const QgsVectorLayer *layer,
// 1. passed attribute value and if field does not have a unique constraint like primary key
if ( fd.attributes().contains( idx ) )
{
v = fd.attributes().value( idx );
v = fd.attributes().at( idx );
}
// Cache unique values