Comment 3 for bug 318726

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Another case of a bounding box with one dimension being zero, making Inkscape go bezerk

I'm not sure if I can really fix this quickly, this short before our upcomming release. But the least we should do is to let Inkscape fail silenty with maybe just a warning instead of crashing. If I remove the g_assert though then it will crash in a different place downstream.

Just a small reminder for myself:

1) _geometric_bbox = selection->bounds(SPItem::GEOMETRIC_BBOX), in seltrans.cpp calls

2) Geom::OptRect Selection::bounds(SPItem::BBoxType type) const, in selection.cpp, which in turn calls

3) unify() in src/2geom/rect.h, which sees to empty bounding boxes.