From b151200ffc523b9d5008e4be503d30442394b419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Fri, 25 Sep 2015 10:25:44 +0200 Subject: [PATCH] (#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. --- ApplicationCode/UserInterface/RiuWellLogTrackPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/UserInterface/RiuWellLogTrackPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogTrackPlot.cpp index 5bd0f28f60..b338435174 100644 --- a/ApplicationCode/UserInterface/RiuWellLogTrackPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogTrackPlot.cpp @@ -252,7 +252,7 @@ void RiuWellLogTrackPlot::selectClosestCurve(const QPoint& pos) } } - if (closestCurve) + if (closestCurve && distMin < 20) { RimWellLogPlotCurve* selectedCurve = m_plotTrackDefinition->curveDefinitionFromCurve(closestCurve); if (selectedCurve)