From 372c4ba8a2caeeebeca6a18bb6942c400646f1c2 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 22 Apr 2017 10:29:57 +0200 Subject: [PATCH] inpcom.c, inp_add_series_resistor(), reorder --- src/frontend/inpcom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 2c9b20d13..bcad74150 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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;