mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-08 00:14:35 +08:00
Fix for IndexOutOfRangeException exception
Fixes issue: https://github.com/UglyToad/PdfPig/issues/954
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
|
||||
private ushort[] MergeContourEndPoints(IGlyphDescription glyph)
|
||||
{
|
||||
var destinationLastEndPoint = EndPointsOfContours[EndPointsOfContours.Length - 1] + 1;
|
||||
var destinationLastEndPoint = (EndPointsOfContours.Length > 0 ? EndPointsOfContours[EndPointsOfContours.Length - 1] : 0) + 1;
|
||||
|
||||
var endPoints = new ushort[EndPointsOfContours.Length + glyph.EndPointsOfContours.Length];
|
||||
|
||||
|
Reference in New Issue
Block a user