Skip to content
Permalink
Browse files
[labeling] Fix misnamed functions' label sink parameter
  • Loading branch information
nirvn committed Dec 27, 2021
1 parent 551026c commit 3211c559c5610227c683b47050c96475d2fd3591
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/labeling/qgslabelsink.cpp
@@ -20,9 +20,9 @@
#include "qgsmapsettings.h"
#include "qgslogger.h"

QgsLabelSinkProvider::QgsLabelSinkProvider( QgsVectorLayer *layer, const QString &providerId, QgsLabelSink *dxf, const QgsPalLayerSettings *settings )
QgsLabelSinkProvider::QgsLabelSinkProvider( QgsVectorLayer *layer, const QString &providerId, QgsLabelSink *sink, const QgsPalLayerSettings *settings )
: QgsVectorLayerLabelProvider( layer, providerId, false, settings )
, mLabelSink( dxf )
, mLabelSink( sink )
{
}

@@ -32,9 +32,9 @@ void QgsLabelSinkProvider::drawLabel( QgsRenderContext &context, pal::LabelPosit
mLabelSink->drawLabel( layerId(), context, label, mSettings );
}

QgsRuleBasedLabelSinkProvider::QgsRuleBasedLabelSinkProvider( const QgsRuleBasedLabeling &rules, QgsVectorLayer *layer, QgsLabelSink *dxf )
QgsRuleBasedLabelSinkProvider::QgsRuleBasedLabelSinkProvider( const QgsRuleBasedLabeling &rules, QgsVectorLayer *layer, QgsLabelSink *sink )
: QgsRuleBasedLabelProvider( rules, layer, false )
, mLabelSink( dxf )
, mLabelSink( sink )
{
mRules->rootRule()->createSubProviders( layer, mSubProviders, this );
}

0 comments on commit 3211c55

Please sign in to comment.