Skip title line when resorting .params, .meas, .temp

This commit is contained in:
Holger Vogt 2023-06-13 19:57:19 +02:00
parent b72f9516ac
commit 216e5cb58b
1 changed files with 5 additions and 0 deletions

View File

@ -980,6 +980,11 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
}
for (dd = deck; dd; dd = dd->nextcard) {
/* first line is title line */
if (deck == dd) {
prev_card = dd;
continue;
}
/* all parameter lines should be sequentially ordered and placed at
beginning of deck */
if (ciprefix(".para", dd->line)) {