inpcom.c, inp_add_series_resistor(), reorder
This commit is contained in:
parent
2ce71c10ef
commit
372c4ba8a2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue