Skip to content
Permalink
Browse files

Fix render state not restored from QDomElement

  • Loading branch information
ccrook committed Oct 16, 2014
1 parent 481067f commit 359a3d8084f471a4cbaf88f183ea7993099fa240
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -1113,10 +1113,11 @@ QgsFeatureRendererV2* QgsGraduatedSymbolRendererV2::create( QDomElement& element
double upperValue = rangeElem.attribute( "upper" ).toDouble();
QString symbolName = rangeElem.attribute( "symbol" );
QString label = rangeElem.attribute( "label" );
bool render=rangeElem.attribute("render","true") != "false";
if ( symbolMap.contains( symbolName ) )
{
QgsSymbolV2* symbol = symbolMap.take( symbolName );
ranges.append( QgsRendererRangeV2( lowerValue, upperValue, symbol, label ) );
ranges.append( QgsRendererRangeV2( lowerValue, upperValue, symbol, label, render ) );
}
}
rangeElem = rangeElem.nextSiblingElement();

0 comments on commit 359a3d8

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