Skip to content

Commit 4e35bb8

Browse files
author
g_j_m
committed
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
1 parent 5f557ef commit 4e35bb8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/composer/qgscomposervectorlegend.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,6 @@ QRect QgsComposerVectorLegend::render ( QPainter *p )
255255
QgsVectorLayer *vector = dynamic_cast <QgsVectorLayer*> (layer2);
256256
const QgsRenderer *renderer = vector->renderer();
257257

258-
// QgsContinuousColorRenderer is not supported yet
259-
// QgsSiMaRenderer, QgsGraduatedMaRenderer, QgsUValMaRenderer no more
260-
if ( typeid (*renderer) == typeid(QgsContinuousColorRenderer) )
261-
{
262-
continue;
263-
}
264-
265258
if ( (group > 0 && group2 == group) || ( group == 0 && j == i ) ) {
266259
groupLayers.push_back(j);
267260

0 commit comments

Comments
 (0)