git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc149b5
)
Fix ymax in GROUP bounding box
author
Sam Moore
<
[email protected]
>
Thu, 14 Aug 2014 04:54:57 +0000
(12:54 +0800)
committer
Sam Moore
<
[email protected]
>
Thu, 14 Aug 2014 04:54:57 +0000
(12:54 +0800)
svg-tests/circlepath.svg has the right box now
BTW: Segfaults in previous commit occur only for quadtree enabled
src/document.cpp
patch
|
blob
|
history
diff --git
a/src/document.cpp
b/src/document.cpp
index
6754faa
..
6a86291
100644
(file)
--- 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);
UCC
git Repository :: git.ucc.asn.au