mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
Added missing initialization of distance when picking in Qwt plots
This commit is contained in:
parent
bb18c28cf3
commit
ea6d652a17
@ -214,7 +214,7 @@ void RiuSummaryQwtPlot::selectClosestCurve(const QPoint& pos)
|
||||
if((*it)->rtti() == QwtPlotItem::Rtti_PlotCurve)
|
||||
{
|
||||
QwtPlotCurve* candidateCurve = static_cast<QwtPlotCurve*>(*it);
|
||||
double dist;
|
||||
double dist = DBL_MAX;
|
||||
candidateCurve->closestPoint(pos, &dist);
|
||||
if(dist < distMin)
|
||||
{
|
||||
|
@ -240,7 +240,7 @@ void RiuWellLogTrack::selectClosestCurve(const QPoint& pos)
|
||||
if ((*it )->rtti() == QwtPlotItem::Rtti_PlotCurve )
|
||||
{
|
||||
QwtPlotCurve* candidateCurve = static_cast<QwtPlotCurve*>(*it);
|
||||
double dist;
|
||||
double dist = DBL_MAX;
|
||||
candidateCurve->closestPoint(pos, &dist);
|
||||
if (dist < distMin)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user