Corrected an error that had previously been corrected in

PropertyMatch() but not corrected symmetrically between circuit1
and circuit2;  this left the possibility that "M=1" in one
circuit vs. no "M" entry in the other would still pop up as a
property error, depending on which circuit (layout or schematic)
was listed first.
This commit is contained in:
Tim Edwards 2024-04-03 11:01:58 -04:00
parent 035fef5c72
commit 3d180f778d
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
1.5.272
1.5.273

View File

@ -6211,7 +6211,9 @@ PropertyMatch(struct Element *E1, struct Element *E2,
if (kl1 != NULL)
break; // Property is required
}
else if (vl1->value.ival != 1)
else if ((vl1->type == PROP_INTEGER) && (vl1->value.ival != 1))
break; // Property M != 1 or S != 1 is a mismatch.
else if ((vl1->type == PROP_DOUBLE) && (vl1->value.dval != 1))
break; // Property M != 1 or S != 1 is a mismatch.
}
if (vl1->type != PROP_ENDLIST) {