Merge branch 'master' into netgen-1.5

This commit is contained in:
Tim Edwards 2022-10-25 02:00:01 -04:00
commit 2af3f2a3f7
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
1.5.234
1.5.235

View File

@ -5005,6 +5005,11 @@ int PropertyOptimize(struct objlist *ob, struct nlist *tp, int run, int series,
// find ith record in ob
p = 0;
for (ob2 = ob; p != i; ob2 = ob2->next, p++);
/* Sanity check */
if (ob2->type != PROPERTY) {
Fprintf(stderr, "Incorrect property run count!\n");
continue;
}
// Count entries, add one, reallocate
for (p = 0;; p++) {
vl = &ob2->instance.props[p];