Hi;

Gerbv PNG export is broken when cairo disabled.

How to reproduce:
1) configure with --disable-cairo option
2) load examples/dan/top.gbx
3) invoke File->Export->PNG

The result is segmentation fault. The cause is that
gerbv_render_to_pixmap_using_gdk() is called with selectionInfo
being NULL, whereas line 701,
if (selectionInfo->type != GERBV_SELECTION_EMPTY) {
relies on it's being non-NULL

I suggest to replace the line with
if (selectionInfo != NULL && selectionInfo->type != GERBV_SELECTION_EMPTY) {

This fixes the problem on all test I've run.

Regards,
Ineiev


_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to