Skip to content
Permalink
Browse files

#9610: save tolerance of displacement point

  • Loading branch information
ahuarte47 committed Feb 20, 2014
1 parent 4d74ad7 commit d6b009562ff65998b8dd06597003b76b32d4dd7c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/symbology-ng/qgspointdisplacementrenderer.cpp
@@ -279,6 +279,7 @@ QgsFeatureRendererV2* QgsPointDisplacementRenderer::create( QDomElement& symbolo
r->setLabelColor( QgsSymbolLayerV2Utils::decodeColor( symbologyElem.attribute( "labelColor", "" ) ) );
r->setCircleRadiusAddition( symbologyElem.attribute( "circleRadiusAddition", "0.0" ).toDouble() );
r->setMaxLabelScaleDenominator( symbologyElem.attribute( "maxLabelScaleDenominator", "-1" ).toDouble() );
r->setTolerance( symbologyElem.attribute( "tolerance", "0.00001" ).toDouble() );

//look for an embedded renderer <renderer-v2>
QDomElement embeddedRendererElem = symbologyElem.firstChildElement( "renderer-v2" );
@@ -307,6 +308,7 @@ QDomElement QgsPointDisplacementRenderer::save( QDomDocument& doc )
rendererElement.setAttribute( "labelColor", QgsSymbolLayerV2Utils::encodeColor( mLabelColor ) );
rendererElement.setAttribute( "circleRadiusAddition", QString::number( mCircleRadiusAddition ) );
rendererElement.setAttribute( "maxLabelScaleDenominator", QString::number( mMaxLabelScaleDenominator ) );
rendererElement.setAttribute( "tolerance", QString::number( mTolerance ) );

if ( mRenderer )
{

0 comments on commit d6b0095

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