<div>Hi all,</div><div><br></div><div>It looks like that _cairo_bentley_ottmann_tessellate_boxes() does not handle zero or single box input correctly.</div><div><br></div><div>I think clearing &#39;out&#39; when &#39;in-&gt;num_boxes == 0&#39; would be more correct rather than just returning CAIRO_STATUS_SUCCESS because we cannot assume that &#39;out&#39; is already empty and &#39;in&#39; and &#39;out&#39; might be equal.</div>
<div><br></div><div>For a single box input, we should copy &#39;in&#39; to &#39;out&#39;. I assumed that cairo_boxes_t have no empty chunk if it has at least a box (therefore the first box is at boxes-&gt;chunks.base[0]). May I have this assumption though?</div>
<div><br></div><div>Please review my patch and leave some comments.</div><div>Thanks.</div><br>-- <br>Best Regards,<div>Taekyun Kim</div><br>