Skip to content
Permalink
Browse files

adding missing include for qgsrendercontext

  • Loading branch information
roya0045 authored and nyalldawson committed Jan 2, 2019
1 parent 58dc153 commit 1fff24da11f32cfa415258e4f29d18fbdcffc02b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgslegendrenderer.cpp
@@ -21,6 +21,7 @@
#include "qgslegendstyle.h"
#include "qgsmaplayerlegend.h"
#include "qgssymbol.h"
#include "qgsrendercontext.h"
#include "qgsvectorlayer.h"

#include <QPainter>
@@ -757,7 +758,7 @@ QSizeF QgsLegendRenderer::drawAtom( const Atom &atom, QgsRenderContext *renderco
QgsLegendRenderer::Nucleon QgsLegendRenderer::drawSymbolItem( QgsLayerTreeModelLegendNode *symbolItem, QgsRenderContext *rendercontext, QPointF point, double labelXOffset )
{
QgsLayerTreeModelLegendNode::ItemContext ctx;
ctx.painter=rendercontext->painter();
ctx.painter = rendercontext->painter();
ctx.point = point;
ctx.labelXOffset = labelXOffset;

0 comments on commit 1fff24d

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