Skip to content
Permalink
Browse files

Fix failing test

  • Loading branch information
nyalldawson committed Feb 7, 2017
1 parent 3ed6f5b commit a43abeced451b8a59ba0de028d3a7b0e7c9f9ed7
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/symbology-ng/qgsgraduatedsymbolrenderer.cpp
@@ -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" )];
@@ -1251,6 +1251,9 @@ QgsColorRamp* QgsGraduatedSymbolRenderer::sourceColorRamp()

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

mSourceColorRamp.reset( ramp );
}

0 comments on commit a43abec

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