Fix a huge bunch of memory corruption bugs in GL
[ipdf/code.git] / src / document.cpp
index c97aa56..8fc4c9a 100644 (file)
@@ -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