X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.cpp;h=8fc4c9a1499cb95b997908dfef45a07423d91e0b;hp=c97aa56ee3cc0c7355d66232d54a680889d7e8a3;hb=b85533b9da0dc3f6cdf8e329250518d4ac82e434;hpb=666fa863baba6345fa5cf66711e9149b5d06b825 diff --git a/src/document.cpp b/src/document.cpp index c97aa56..8fc4c9a 100644 --- 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);