Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Aug 28, 2017
1 parent cf5ab4b commit f92c23f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,9 @@ bool QgsVectorLayer::addFeature( QgsFeature &feature, Flags )
if ( success )
{
updateExtents();
success = addFeaturesToJoinedLayers( QgsFeatureList() << feature );

if ( mJoinBuffer->containsJoins() )
success = addFeaturesToJoinedLayers( QgsFeatureList() << feature );
}

return success;
Expand Down Expand Up @@ -2636,7 +2638,7 @@ bool QgsVectorLayer::addFeatures( QgsFeatureList &features, Flags )
bool res = mEditBuffer->addFeatures( features );
updateExtents();

if ( res )
if ( res && mJoinBuffer->containsJoins() )
res = addFeaturesToJoinedLayers( features );

return res;
Expand Down

0 comments on commit f92c23f

Please sign in to comment.