Skip to content
Permalink
Browse files
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@5825 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 14, 2006
1 parent 5f557ef commit 4e35bb8b4bff33f282acb7a635cd17e04d559acb
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/composer/qgscomposervectorlegend.cpp
@@ -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);

0 comments on commit 4e35bb8

Please sign in to comment.