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/qgis@5825 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Sep 14, 2006
1 parent c3cfef7 commit cf777df19017e9095f7fe10358d2e9a1528ae225
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 cf777df

Please sign in to comment.