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 ce41dd3 commit 969fe29968d750ff44d99fea142e4fde30acb259
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgspointdisplacementrenderer.cpp
@@ -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 );
}

0 comments on commit 969fe29

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