Skip to content
Permalink
Browse files

Update src/core/symbology/qgspointdisplacementrenderer.cpp

Co-Authored-By: HenrikSpa <henrik.spangmyr@midvatten.se>
  • Loading branch information
nyalldawson and HenrikSpa committed Feb 26, 2019
1 parent f9f51cc commit ce41dd3f0abfa97bbea6af182546cc4e0e84e718
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgspointdisplacementrenderer.cpp
@@ -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;

0 comments on commit ce41dd3

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