Skip to content
Permalink
Browse files

Adds missing styleChanged connection

Remove useless if ( mRenderContext ) in onAttributeValueChanged and
onStyleChanged
  • Loading branch information
lbartoletti committed Oct 25, 2018
1 parent d33052a commit a091e64ba944dfa9c0419190065971dc30914911
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/core/qgstracer.cpp
@@ -617,6 +617,7 @@ void QgsTracer::setLayers( const QList<QgsVectorLayer *> &layers )
connect( layer, &QgsVectorLayer::geometryChanged, this, &QgsTracer::onGeometryChanged );
connect( layer, &QgsVectorLayer::attributeValueChanged, this, &QgsTracer::onAttributeValueChanged );
connect( layer, &QgsVectorLayer::dataChanged, this, &QgsTracer::onDataChanged );
connect( layer, &QgsVectorLayer::styleChanged, this, &QgsTracer::onStyleChanged );
connect( layer, &QObject::destroyed, this, &QgsTracer::onLayerDestroyed );
}

@@ -705,8 +706,7 @@ void QgsTracer::onAttributeValueChanged( QgsFeatureId fid, int idx, const QVaria
Q_UNUSED( fid );
Q_UNUSED( idx );
Q_UNUSED( value );
if ( mRenderContext )
invalidateGraph();
invalidateGraph();
}

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

void QgsTracer::onStyleChanged( )
{
if ( mRenderContext )
invalidateGraph();
invalidateGraph();
}

void QgsTracer::onLayerDestroyed( QObject *obj )

0 comments on commit a091e64

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