Skip to content

Commit

Permalink
Update src/core/symbology/qgspointdisplacementrenderer.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: HenrikSpa <henrik.spangmyr@midvatten.se>
  • Loading branch information
nyalldawson and HenrikSpa committed Mar 26, 2019
1 parent ce41dd3 commit 969fe29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgspointdisplacementrenderer.cpp
Expand Up @@ -369,7 +369,7 @@ void QgsPointDisplacementRenderer::calculateSymbolAndLabelPositions( QgsSymbolRe
yFactor = -1;
}

side = sqrt( pow( diagonals.at( symbolIndex ), 2 ) / 2.0 );
side = std::sqrt( std::pow( diagonals.at( symbolIndex ), 2 ) / 2.0 );
QPointF labelShift( ( side * mLabelDistanceFactor * xFactor ), ( -side * mLabelDistanceFactor * yFactor ) );
labelShifts.append( symbolPositions.at( symbolIndex ) - centerPoint + labelShift );
}
Expand Down

0 comments on commit 969fe29

Please sign in to comment.