git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a huge bunch of memory corruption bugs in GL
[ipdf/code.git]
/
src
/
document.cpp
diff --git
a/src/document.cpp
b/src/document.cpp
index
c97aa56
..
8fc4c9a
100644
(file)
--- a/
src/document.cpp
+++ b/
src/document.cpp
@@
-397,6
+397,8
@@
void Document::AddPathFromString(const string & d, const Rect & bounds)
x[2] = x[1];
y[2] = y[1];
+
+ Rect segment_bounds(x[0], y[0], x[2] - x[0], y[2] - y[0]);
unsigned index = AddBezierData(Bezier(x[0],y[0],x[1],y[1],x[2],y[2]));
Add(BEZIER,bounds,index);
UCC
git Repository :: git.ucc.asn.au