Skip to content
Permalink
Browse files

Fix #10535 (legend symbol items for graduated symbol renderer)

The implementation used temporary symbols which are only valid
between startRender()/stopRender() calls and was breaking
also composer legend.
  • Loading branch information
wonder-sk committed Jun 10, 2014
1 parent 98dcc0d commit 1acf45f5cd59303fedacd00902960e05ffa598dc
Showing with 1 addition and 10 deletions.
  1. +1 −10 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -1116,16 +1116,7 @@ QgsLegendSymbolList QgsGraduatedSymbolRendererV2::legendSymbolItems( double scal
{
if ( rule.isEmpty() || range.label() == rule )
{
QgsSymbolV2* symbol;
if ( !mRotation.data() && !mSizeScale.data() )
{
symbol = range.symbol();
}
else
{
symbol = mTempSymbols[range.symbol()];
}
lst << qMakePair( range.label(), symbol );
lst << qMakePair( range.label(), range.symbol() );
}
}
return lst;

0 comments on commit 1acf45f

Please sign in to comment.
You can’t perform that action at this time.