Skip to content

Commit 5284fef

Browse files
committedSep 20, 2016
If a dependent layer is redrawn, then also redraw child layer
1 parent 172c12b commit 5284fef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4139,6 +4139,7 @@ bool QgsVectorLayer::setDependencies( const QSet<QgsMapLayerDependency>& oDeps )
41394139
disconnect( lyr, SIGNAL( featureDeleted( QgsFeatureId ) ), this, SIGNAL( dataChanged() ) );
41404140
disconnect( lyr, SIGNAL( geometryChanged( QgsFeatureId, const QgsGeometry& ) ), this, SIGNAL( dataChanged() ) );
41414141
disconnect( lyr, SIGNAL( dataChanged() ), this, SIGNAL( dataChanged() ) );
4142+
disconnect( lyr, SIGNAL( repaintRequested() ), this, SLOT( triggerRepaint() ) );
41424143
}
41434144

41444145
// assign new dependencies
@@ -4158,6 +4159,7 @@ bool QgsVectorLayer::setDependencies( const QSet<QgsMapLayerDependency>& oDeps )
41584159
connect( lyr, SIGNAL( featureDeleted( QgsFeatureId ) ), this, SIGNAL( dataChanged() ) );
41594160
connect( lyr, SIGNAL( geometryChanged( QgsFeatureId, const QgsGeometry& ) ), this, SIGNAL( dataChanged() ) );
41604161
connect( lyr, SIGNAL( dataChanged() ), this, SIGNAL( dataChanged() ) );
4162+
connect( lyr, SIGNAL( repaintRequested() ), this, SLOT( triggerRepaint() ) );
41614163
}
41624164

41634165
// if new layers are present, emit a data change

0 commit comments

Comments
 (0)
Please sign in to comment.