Skip to content
Permalink
Browse files

Fix diagrams

git-svn-id: http://svn.osgeo.org/qgis/trunk@15513 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 16, 2011
1 parent 1c3bac6 commit a9698d83273767726d6903d6850e06e46e886163
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgsmaprenderer.h
  2. +1 −1 src/core/qgsvectorlayer.cpp
@@ -74,7 +74,7 @@ class QgsLabelingEngineInterface
//! @note: this method was added in version 1.6
virtual int prepareLayer( QgsVectorLayer* layer, QSet<int>& attrIndices, QgsRenderContext& ctx ) = 0;
//! adds a diagram layer to the labeling engine
virtual int addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSettings& s ) { return 0; };
virtual int addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSettings* s ) { return 0; }
//! called for every feature
virtual void registerFeature( QgsVectorLayer* layer, QgsFeature& feat, const QgsRenderContext& context = QgsRenderContext() ) = 0;
//! called for every diagram feature
@@ -5191,7 +5191,7 @@ void QgsVectorLayer::prepareLabelingAndDiagrams( QgsRenderContext& rendererConte
if ( mDiagramRenderer && mDiagramLayerSettings )
{
mDiagramLayerSettings->renderer = mDiagramRenderer;
rendererContext.labelingEngine()->addDiagramLayer( this, *mDiagramLayerSettings );
rendererContext.labelingEngine()->addDiagramLayer( this, mDiagramLayerSettings );
//add attributes needed by the diagram renderer
QList<int> att = mDiagramRenderer->diagramAttributes();
QList<int>::const_iterator attIt = att.constBegin();

0 comments on commit a9698d8

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