summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 64e78a9..3084463 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -906,7 +906,7 @@ get_contour_cbox(FT_BBox *box, FT_Vector *points, int start, int end)
box->xMax = box->yMax = INT_MIN;
int i;
- for (i = start; i < end; i++) {
+ for (i = start; i <= end; i++) {
box->xMin = (points[i].x < box->xMin) ? points[i].x : box->xMin;
box->xMax = (points[i].x > box->xMax) ? points[i].x : box->xMax;
box->yMin = (points[i].y < box->yMin) ? points[i].y : box->yMin;