From 2ac270ce8ea1fe81fd7b6946899532af56f8de8e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 8 Sep 2019 01:11:27 +0100 Subject: [PATCH] Fix bug with high-frequency plots. Fixes: lp:1839712 * https://bugs.launchpad.net/kicad/+bug/1839712 --- common/widgets/mathplot.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/widgets/mathplot.cpp b/common/widgets/mathplot.cpp index 21b937e71a..907b5b73ce 100644 --- a/common/widgets/mathplot.cpp +++ b/common/widgets/mathplot.cpp @@ -715,8 +715,11 @@ void mpFXY::Plot( wxDC& dc, mpWindow& w ) continue; } - if( x0 == x1 ) // continue until a new X coordinate is reached - continue; +// This gives disastrous results with very high-frequency plots where the +// X coordinate may not increment until several waves later +// +// if( x0 == x1 ) // continue until a new X coordinate is reached +// continue; bool outDown = ( y0 > maxYpx ) && ( y1 > maxYpx ); bool outUp = ( y0 < minYpx ) && ( y1 < minYpx );