Skip to content

Commit a091e64

Browse files
committedOct 25, 2018
Adds missing styleChanged connection
Remove useless if ( mRenderContext ) in onAttributeValueChanged and onStyleChanged
1 parent d33052a commit a091e64

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/core/qgstracer.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ void QgsTracer::setLayers( const QList<QgsVectorLayer *> &layers )
617617
connect( layer, &QgsVectorLayer::geometryChanged, this, &QgsTracer::onGeometryChanged );
618618
connect( layer, &QgsVectorLayer::attributeValueChanged, this, &QgsTracer::onAttributeValueChanged );
619619
connect( layer, &QgsVectorLayer::dataChanged, this, &QgsTracer::onDataChanged );
620+
connect( layer, &QgsVectorLayer::styleChanged, this, &QgsTracer::onStyleChanged );
620621
connect( layer, &QObject::destroyed, this, &QgsTracer::onLayerDestroyed );
621622
}
622623

@@ -705,8 +706,7 @@ void QgsTracer::onAttributeValueChanged( QgsFeatureId fid, int idx, const QVaria
705706
Q_UNUSED( fid );
706707
Q_UNUSED( idx );
707708
Q_UNUSED( value );
708-
if ( mRenderContext )
709-
invalidateGraph();
709+
invalidateGraph();
710710
}
711711

712712
void QgsTracer::onDataChanged( )
@@ -716,8 +716,7 @@ void QgsTracer::onDataChanged( )
716716

717717
void QgsTracer::onStyleChanged( )
718718
{
719-
if ( mRenderContext )
720-
invalidateGraph();
719+
invalidateGraph();
721720
}
722721

723722
void QgsTracer::onLayerDestroyed( QObject *obj )

0 commit comments

Comments
 (0)
Please sign in to comment.