Skip to content
Permalink
Browse files
Add consts
  • Loading branch information
mhugent committed Jun 7, 2021
1 parent feff27e commit ca29531c3f5cbeb069f69821c15e8e352ffc2a62
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server/services/wms/qgswmsrenderer.cpp
@@ -3276,13 +3276,13 @@ namespace QgsWms
QgsCoordinateTransform coordTransform( annotation->mapPositionCrs(), mapSettings.destinationCrs(), mapSettings.transformContext() );
mapPos = coordTransform.transform( mapPos );
}
QgsPointXY devicePos = mapSettings.mapToPixel().transform( mapPos );
const QgsPointXY devicePos = mapSettings.mapToPixel().transform( mapPos );
offsetX = devicePos.x();
offsetY = devicePos.y();
}
else
{
QPointF relativePos = annotation->relativePosition();
const QPointF relativePos = annotation->relativePosition();
offsetX = mapSettings.outputSize().width() * relativePos.x();
offsetY = mapSettings.outputSize().height() * relativePos.y();
}

0 comments on commit ca29531

Please sign in to comment.