(#466) A curve must be selected no further than 20 pixels away

If the selection point is more than 20 pixels away from any curve's
points, the track is selected instead.
This commit is contained in:
Pål Hagen 2015-09-25 10:25:44 +02:00
parent c79a01f3b9
commit b151200ffc

View File

@ -252,7 +252,7 @@ void RiuWellLogTrackPlot::selectClosestCurve(const QPoint& pos)
}
}
if (closestCurve)
if (closestCurve && distMin < 20)
{
RimWellLogPlotCurve* selectedCurve = m_plotTrackDefinition->curveDefinitionFromCurve(closestCurve);
if (selectedCurve)