Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adding missing include for qgsrendercontext
  • Loading branch information
roya0045 authored and nyalldawson committed Jan 10, 2019
1 parent 58dc153 commit 1fff24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgslegendrenderer.cpp
Expand Up @@ -21,6 +21,7 @@
#include "qgslegendstyle.h"
#include "qgsmaplayerlegend.h"
#include "qgssymbol.h"
#include "qgsrendercontext.h"
#include "qgsvectorlayer.h"

#include <QPainter>
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 1fff24d

Please sign in to comment.