Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 3ed6f5b commit a43abec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/symbology-ng/qgsgraduatedsymbolrenderer.cpp
Expand Up @@ -144,7 +144,7 @@ QString QgsRendererRange::dump() const

void QgsRendererRange::toSld( QDomDocument &doc, QDomElement &element, QgsStringMap props, bool firstRange ) const
{
if ( mSymbol || props.value( QStringLiteral( "attribute" ), QLatin1String( "" ) ).isEmpty() )
if ( !mSymbol || props.value( QStringLiteral( "attribute" ), QLatin1String( "" ) ).isEmpty() )
return;

QString attrName = props[ QStringLiteral( "attribute" )];
Expand Down Expand Up @@ -1251,6 +1251,9 @@ QgsColorRamp* QgsGraduatedSymbolRenderer::sourceColorRamp()

void QgsGraduatedSymbolRenderer::setSourceColorRamp( QgsColorRamp* ramp )
{
if ( ramp == mSourceColorRamp.get() )
return;

mSourceColorRamp.reset( ramp );
}

Expand Down

0 comments on commit a43abec

Please sign in to comment.