Don't force size based legend symbols to black colors

This commit is contained in:
Nyall Dawson 2015-05-30 13:13:00 +10:00
parent cf7303fcf1
commit edc880e588
2 changed files with 0 additions and 2 deletions

View File

@ -753,7 +753,6 @@ QgsLegendSymbolListV2 QgsCategorizedSymbolRendererV2::legendSymbolItemsV2() cons
{
QgsLegendSymbolItemV2 si( mSourceSymbol.data(), QString::number( v ), "" );
QgsMarkerSymbolV2 * s = static_cast<QgsMarkerSymbolV2 *>( si.symbol() );
s->setColor( QColor( 0, 0, 0 ) );
s->setDataDefinedSize( QgsDataDefined() );
s->setSize( exp.size( v ) );
lst << si;

View File

@ -1208,7 +1208,6 @@ QgsLegendSymbolListV2 QgsGraduatedSymbolRendererV2::legendSymbolItemsV2() const
{
QgsLegendSymbolItemV2 si( mSourceSymbol.data(), QString::number( v ), "" );
QgsMarkerSymbolV2 * s = static_cast<QgsMarkerSymbolV2 *>( si.symbol() );
s->setColor( QColor( 0, 0, 0 ) );
s->setDataDefinedSize( QgsDataDefined() );
s->setSize( exp.size( v ) );
list << si;