mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4324 Make sure centre position of reach circle graphics is also in display coordinates
This commit is contained in:
parent
ca1fba8207
commit
3e515e82a8
@ -100,7 +100,7 @@ void RivReachCircleAnnotationPartMgr::buildParts(const caf::DisplayCoordTransfor
|
|||||||
|
|
||||||
// Center point part
|
// Center point part
|
||||||
{
|
{
|
||||||
auto centerPos = rimAnnotation->centerPoint();
|
auto centerPos = displayXf->transformToDisplayCoord(rimAnnotation->centerPoint());
|
||||||
double symbolSize = 20;
|
double symbolSize = 20;
|
||||||
double xMin = centerPos.x() - symbolSize / 2.0;
|
double xMin = centerPos.x() - symbolSize / 2.0;
|
||||||
double xMax = xMin + symbolSize;
|
double xMax = xMin + symbolSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user