Skip to content
Permalink
Browse files

[symbology] fix precision of values when saving settings (#14036)

  • Loading branch information
nirvn committed Dec 26, 2015
1 parent 4b72357 commit 8ff4c78e7aba42f7007a3a7230aae088c4ce60c8
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 8ff4c78

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