<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 'out' when 'in->num_boxes == 0' would be more correct rather than just returning CAIRO_STATUS_SUCCESS because we cannot assume that 'out' is already empty and 'in' and 'out' might be equal.</div>
<div><br></div><div>For a single box input, we should copy 'in' to 'out'. I assumed that cairo_boxes_t have no empty chunk if it has at least a box (therefore the first box is at boxes->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>