Skip to content
Permalink
Browse files

Small cleanup

  • Loading branch information
pblottiere committed Jul 20, 2017
1 parent cf5ab4b commit f92c23fdfb57a6657d01f8f5fcf44d9582496a33
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/core/qgsvectorlayer.cpp
@@ -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;
@@ -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;

0 comments on commit f92c23f

Please sign in to comment.
You can’t perform that action at this time.