Skip to content

Commit 0b5f554

Browse files
author
mhugent
committed
Fix diagrams
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15513 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0840fb3 commit 0b5f554

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/qgsmaprenderer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class QgsLabelingEngineInterface
7474
//! @note: this method was added in version 1.6
7575
virtual int prepareLayer( QgsVectorLayer* layer, QSet<int>& attrIndices, QgsRenderContext& ctx ) = 0;
7676
//! adds a diagram layer to the labeling engine
77-
virtual int addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSettings& s ) { return 0; };
77+
virtual int addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSettings* s ) { return 0; }
7878
//! called for every feature
7979
virtual void registerFeature( QgsVectorLayer* layer, QgsFeature& feat, const QgsRenderContext& context = QgsRenderContext() ) = 0;
8080
//! called for every diagram feature

src/core/qgsvectorlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5191,7 +5191,7 @@ void QgsVectorLayer::prepareLabelingAndDiagrams( QgsRenderContext& rendererConte
51915191
if ( mDiagramRenderer && mDiagramLayerSettings )
51925192
{
51935193
mDiagramLayerSettings->renderer = mDiagramRenderer;
5194-
rendererContext.labelingEngine()->addDiagramLayer( this, *mDiagramLayerSettings );
5194+
rendererContext.labelingEngine()->addDiagramLayer( this, mDiagramLayerSettings );
51955195
//add attributes needed by the diagram renderer
51965196
QList<int> att = mDiagramRenderer->diagramAttributes();
51975197
QList<int>::const_iterator attIt = att.constBegin();

0 commit comments

Comments
 (0)