X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fpath.cpp;h=f12e2a7829c0bc941d740da1ae5b800b7a47dd44;hb=748d002a813bbe6309dd22259bdce3278c02b0c8;hp=af9fb74181e4038d075346462bad377d2a0f2039;hpb=03cc1b0a0d0705e0b1d92e13fdb18608c7a00272;p=ipdf%2Fcode.git diff --git a/src/path.cpp b/src/path.cpp index af9fb74..f12e2a7 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -21,6 +21,8 @@ Path::Path(const Objects & objects, unsigned start, unsigned end, const Colour & for (unsigned i = m_start; i <= m_end; ++i) { + if (i >= objects.bounds.size()) + break; const Rect & objb = objects.bounds[i]; if (i == m_start || objb.x < xmin)