Skip to content

Commit

Permalink
Apply patch #1896 from gislab
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11512 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 26, 2009
1 parent b5023b6 commit d697d08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions src/core/renderer/qgsuniquevaluerenderer.cpp
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion src/core/renderer/qgsuniquevaluerenderer.h
Expand Up @@ -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*/
Expand Down

0 comments on commit d697d08

Please sign in to comment.