Skip to content

Commit 1acf45f

Browse files
committedJun 10, 2014
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.
1 parent 98dcc0d commit 1acf45f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed
 

‎src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,16 +1116,7 @@ QgsLegendSymbolList QgsGraduatedSymbolRendererV2::legendSymbolItems( double scal
11161116
{
11171117
if ( rule.isEmpty() || range.label() == rule )
11181118
{
1119-
QgsSymbolV2* symbol;
1120-
if ( !mRotation.data() && !mSizeScale.data() )
1121-
{
1122-
symbol = range.symbol();
1123-
}
1124-
else
1125-
{
1126-
symbol = mTempSymbols[range.symbol()];
1127-
}
1128-
lst << qMakePair( range.label(), symbol );
1119+
lst << qMakePair( range.label(), range.symbol() );
11291120
}
11301121
}
11311122
return lst;

0 commit comments

Comments
 (0)
Please sign in to comment.