Skip to content

Commit

Permalink
Fix #10535 (legend symbol items for graduated symbol renderer)
Browse files Browse the repository at this point in the history
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 1acf45f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 1acf45f

Please sign in to comment.