Fix bug with high-frequency plots.

Fixes: lp:1839712
* https://bugs.launchpad.net/kicad/+bug/1839712
This commit is contained in:
Jeff Young 2019-09-08 01:11:27 +01:00
parent f491b7fff7
commit 2ac270ce8e
1 changed files with 5 additions and 2 deletions

View File

@ -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 );