Commit e0ec0d16 authored by Ambroz Bizjak's avatar Ambroz Bizjak

Make min/max calculation work. BUG: 160786

For some reason, assigning 'rv' to 'bestPoint' made a reference instead, and bestPoint would be changed every time in the foreach loop, no matter the value.

svn path=/trunk/KDE/kdeedu/kmplot/; revision=844543
parent daf09573
......@@ -3777,7 +3777,7 @@ QPointF View::findMinMaxValue( const Plot & plot, ExtremaType type, double dmin,
if ( (type == Maximum && rv.y() > best) || (type == Minimum && rv.y() < best) )
{
best = rv.y();
bestPoint = rv;
bestPoint = QPointF(rv.x(), rv.y());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment