Fix plotting bug reported by Robert Turnbull: ngspice-devel 2023-02-10.

This commit is contained in:
Giles Atkinson 2023-02-28 17:31:35 +00:00 committed by Holger Vogt
parent 0caf1aa815
commit 79fcb5d4bd
1 changed files with 4 additions and 1 deletions

View File

@ -485,12 +485,15 @@ void gr_point(struct dvec *dv,
case PLOT_RETLIN:
/* If it's a linear plot, ignore first point since we don't
want to connect with oldx and oldy. */
if (np)
if (np) {
#ifdef LINE_COMPRESSION_CHECKS
drawLine(fromx, fromy, tox, toy, dv);
#else
drawLine(fromx, fromy, tox, toy);
#endif
} else {
LC_flush(); // May be retrace with non-monotonic x-axis
}
if ((tics = currentgraph->ticdata) != NULL) {
for (; *tics < HUGE; tics++)