Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable legends for continuous colour renderers. Despite what a comment
said in the code, it works fine with the continuous renderer.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5825 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 14, 2006
1 parent c3cfef7 commit cf777df
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/composer/qgscomposervectorlegend.cpp
Expand Up @@ -255,13 +255,6 @@ QRect QgsComposerVectorLegend::render ( QPainter *p )
QgsVectorLayer *vector = dynamic_cast <QgsVectorLayer*> (layer2);
const QgsRenderer *renderer = vector->renderer();

// QgsContinuousColorRenderer is not supported yet
// QgsSiMaRenderer, QgsGraduatedMaRenderer, QgsUValMaRenderer no more
if ( typeid (*renderer) == typeid(QgsContinuousColorRenderer) )
{
continue;
}

if ( (group > 0 && group2 == group) || ( group == 0 && j == i ) ) {
groupLayers.push_back(j);

Expand Down

0 comments on commit cf777df

Please sign in to comment.