Merge pull request #477 from josephcsible/iparsecrash

Don't crash when manually entering pinned glyph config
This commit is contained in:
Zeno Rogue authored and GitHub committed 2025-10-13 09:13:12 +02:00
commit 75dc6c775f
1 file changed
+7 -2
+7 -2
View File
@@ -88,8 +88,13 @@ EX void updateglyphpinned() {
exp_parser ep;
ep.s = pinnedglyphs;
do {
int i = ep.iparse();
if(i >= 0 && i < glyphs) glyphpinned[i] = true;
try {
int i = ep.iparse();
if(i >= 0 && i < glyphs) glyphpinned[i] = true;
}
catch(hr_parse_exception&) {
continue;
}
} while(ep.eat(","));
}
}