From: Sam Moore Date: Thu, 14 Aug 2014 04:54:57 +0000 (+0800) Subject: Fix ymax in GROUP bounding box X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=da646c739f87bf28c5a7af2bc180b93b3444321b;p=ipdf%2Fcode.git Fix ymax in GROUP bounding box svg-tests/circlepath.svg has the right box now BTW: Segfaults in previous commit occur only for quadtree enabled --- diff --git a/src/document.cpp b/src/document.cpp index 6754faa..6a86291 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -287,7 +287,7 @@ unsigned Document::AddGroup(unsigned start_index, unsigned end_index) if (i == start_index || objb.y < ymin) ymin = objb.y; if (i == start_index || (objb.y+objb.h) > ymax) - ymax = objb.y; + ymax = (objb.y+objb.h); } Rect bounds(xmin,ymin, xmax-xmin, ymax-ymin);