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/qgis@11512 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Aug 26, 2009
1 parent 96281e0 commit 9a54ef8
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 9a54ef8

Please sign in to comment.