Skip to content

Commit cad038b

Browse files
committedAug 28, 2017
Initialize joined feature properly
1 parent 4be1cc0 commit cad038b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/core/qgsvectorlayerjoinbuffer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ QgsFeature QgsVectorLayerJoinBuffer::joinedFeatureOf( const QgsVectorLayerJoinIn
422422

423423
if ( info->joinLayer() )
424424
{
425+
joinedFeature.initAttributes( info->joinLayer()->fields().count() );
425426
joinedFeature.setFields( info->joinLayer()->fields() );
426427

427428
QString joinFieldName = info->joinFieldName();

0 commit comments

Comments
 (0)
Please sign in to comment.