Fix bug with high-frequency plots.
Fixes: lp:1839712 * https://bugs.launchpad.net/kicad/+bug/1839712
This commit is contained in:
parent
f491b7fff7
commit
2ac270ce8e
|
@ -715,8 +715,11 @@ void mpFXY::Plot( wxDC& dc, mpWindow& w )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( x0 == x1 ) // continue until a new X coordinate is reached
|
// This gives disastrous results with very high-frequency plots where the
|
||||||
continue;
|
// 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 outDown = ( y0 > maxYpx ) && ( y1 > maxYpx );
|
||||||
bool outUp = ( y0 < minYpx ) && ( y1 < minYpx );
|
bool outUp = ( y0 < minYpx ) && ( y1 < minYpx );
|
||||||
|
|
Loading…
Reference in New Issue