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 f9f51cc commit ce41dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgspointdisplacementrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void QgsPointDisplacementRenderer::calculateSymbolAndLabelPositions( QgsSymbolRe
}
else if ( nPosition == 1 ) //If there is only one feature, draw it exactly at the center position
{
const double side = sqrt( pow( symbolDiagonal, 2 ) / 2.0 );
const double side = std::sqrt( std::pow( symbolDiagonal, 2 ) / 2.0 );
symbolPositions.append( centerPoint );
labelShifts.append( QPointF( side * mLabelDistanceFactor, -side * mLabelDistanceFactor ) );
return;
Expand Down

0 comments on commit ce41dd3

Please sign in to comment.