Skip to content

Commit de07bae

Browse files
committed
Removing a line that should never have been there which was breaking property parsing
1 parent e59f15a commit de07bae

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

GDStoSVG/GDSReader.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ private bool ReadRecord(RecordType type, byte[]? data)
329329
this.CurrentProperty = ParseShort(data, 0);
330330
break;
331331
case RecordType.PROPVALUE:
332-
if (this.CurrentProperty != null) { throw new InvalidDataException("New property starting before previous one had value assigned."); }
333332
if (this.CurrentElement == null) { throw new InvalidDataException("Trying to assign property with no element to attach to."); }
334333
if (this.CurrentProperty == null) { throw new InvalidDataException("Trying to assign property data without key."); }
335334
if (data == null || data.Length == 0) { throw new InvalidDataException("Property value had insufficient data"); }

0 commit comments

Comments
 (0)