inpcom.c, inp_add_series_resistor(), reorder

This commit is contained in:
rlar 2017-04-22 10:29:57 +02:00
parent 2ce71c10ef
commit 372c4ba8a2
1 changed files with 3 additions and 2 deletions

View File

@ -5548,10 +5548,11 @@ inp_add_series_resistor(struct line *deck)
struct line *d;
// comment out current L line
// insert new new L and R lines immediately after current line
*(card->li_line) = '*';
d = xx_new_line(NULL, newR, 0, 0);
// insert new new L and R lines immediately after current line
card = card->li_next = xx_new_line(card->li_next, newL, 0, 0);
d = xx_new_line(NULL, newR, 0, 0);
d->li_next = card->li_next;
card->li_next = d;
card = d;