Skip to content

Commit

Permalink
Fix use of deleted function for QgsRuleBasedRenderer::RenderJob
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and nyalldawson committed Jun 11, 2020
1 parent 385f639 commit 39b63cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Expand Up @@ -40,6 +40,7 @@ the rules and draws features with symbols from rules that match.
{
RenderJob( QgsRuleBasedRenderer::FeatureToRender &_ftr, QgsSymbol *_s );


QgsRuleBasedRenderer::FeatureToRender &ftr;
%Docstring
Feature to render
Expand Down
7 changes: 7 additions & 0 deletions src/core/symbology/qgsrulebasedrenderer.h
Expand Up @@ -70,6 +70,13 @@ class CORE_EXPORT QgsRuleBasedRenderer : public QgsFeatureRenderer
, symbol( _s )
{}

QgsRuleBasedRenderer::RenderJob &operator=( const QgsRuleBasedRenderer::RenderJob &rj )
{
symbol = rj.symbol;
ftr = rj.ftr;
return *this;
}

//! Feature to render
QgsRuleBasedRenderer::FeatureToRender &ftr;

Expand Down

0 comments on commit 39b63cb

Please sign in to comment.