Skip to content
Permalink
Browse files

Merge pull request #2613 from nirvn/fix_graduated_values_v3

[graduated symbology] increase precision of float values when saving to dom
  • Loading branch information
NathanW2 committed Dec 26, 2015
2 parents 71dc339 + 8ff4c78 commit 6fed1ae44164d75ea10dc77d18efa4f3bc03ad36
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
@@ -1100,8 +1100,8 @@ QDomElement QgsGraduatedSymbolRendererV2::save( QDomDocument& doc )
symbols.insert( symbolName, range.symbol() );

QDomElement rangeElem = doc.createElement( "range" );
rangeElem.setAttribute( "lower", QString::number( range.lowerValue(), 'f' ) );
rangeElem.setAttribute( "upper", QString::number( range.upperValue(), 'f' ) );
rangeElem.setAttribute( "lower", QString::number( range.lowerValue(), 'f', 15 ) );
rangeElem.setAttribute( "upper", QString::number( range.upperValue(), 'f', 15 ) );
rangeElem.setAttribute( "symbol", symbolName );
rangeElem.setAttribute( "label", range.label() );
rangeElem.setAttribute( "render", range.renderState() ? "true" : "false" );

0 comments on commit 6fed1ae

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