Skip to content
Permalink
Browse files

Apply patch #1896 from gislab

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11512 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Aug 26, 2009
1 parent 96281e0 commit 9a54ef8827eb1751630fa50253dd89385315d420
Showing with 1 addition and 11 deletions.
  1. +0 −10 src/core/renderer/qgsuniquevaluerenderer.cpp
  2. +1 −1 src/core/renderer/qgsuniquevaluerenderer.h
@@ -74,16 +74,6 @@ QgsUniqueValueRenderer::~QgsUniqueValueRenderer()
}
}

const QList<QgsSymbol*> QgsUniqueValueRenderer::symbols() const
{
QList <QgsSymbol*> symbollist;
for ( QMap<QString, QgsSymbol*>::const_iterator it = mSymbols.begin(); it != mSymbols.end(); ++it )
{
symbollist.append( it.value() );
}
return symbollist;
}

void QgsUniqueValueRenderer::insertValue( QString name, QgsSymbol* symbol )
{
mSymbols.insert( name, symbol );
@@ -62,7 +62,7 @@ class CORE_EXPORT QgsUniqueValueRenderer: public QgsRenderer
/**Returns the index of the classification field*/
int classificationField() const;
/**Return symbology items*/
const QList<QgsSymbol*> symbols() const;
const QList<QgsSymbol*> symbols() const { return mSymbols.values(); }
QgsRenderer* clone() const;
protected:
/**Field index used for classification*/

0 comments on commit 9a54ef8

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