Skip to content

Commit

Permalink
Merge pull request #24 from LabhanshAgrawal/loops
Browse files Browse the repository at this point in the history
fix infinite loop in `getRangeGlyphClass`
  • Loading branch information
Tyriar authored Jan 6, 2022
2 parents c9ad109 + 3e06961 commit b6ee748
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/processors/classDef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function getRangeGlyphClass(table: ClassDefTable.Format2, glyphId: [number, numb
result.set([classStart, search], currentClass);
}
}
search++;
}

if (search - classStart <= 1) {
Expand Down

0 comments on commit b6ee748

Please sign in to comment.