Skip to content

Commit 1131180

Browse files
Panic If Symbol is Unset (#1060)
fixes #1057
2 parents 7b61c8f + fe7e40e commit 1131180

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/draw/shapes.typ

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@
507507
} else {
508508
style.symbol
509509
}
510+
511+
assert.ne(style.end, none,
512+
message: "Missing mark symbol! You need to pass a mark name to the mark element.")
513+
510514
style.start = none
511515
style.symbol = none
512516

0 commit comments

Comments
 (0)