From 825ae923d67967283154820f5d0666b18f77746a Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 20 Sep 2012 15:00:41 +0000 Subject: [PATCH] 0021862: [CEA 666] invalid tooltips in multi curve display in Plot2D view --- src/Plot2d/Plot2d_ViewFrame.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 7f6df4c0e..47721d432 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -3922,10 +3922,11 @@ Plot2d_Curve* Plot2d_ViewFrame::getClosestCurve( QPoint p, double& distance, int if ( !aCurve ) continue; double d; - index = aCurve->closestPoint( p, &d ); + int i = aCurve->closestPoint( p, &d ); if ( index > -1 && ( distance < 0 || d < distance ) ) { pCurve = it.value(); distance = d; + index = i; } } return pCurve; -- 2.39.2