Index: trunk/src/hid/lesstif/main.c =================================================================== --- trunk/src/hid/lesstif/main.c (revision 1270) +++ trunk/src/hid/lesstif/main.c (revision 1271) @@ -1136,6 +1136,9 @@ double max_zoom, xfrac, yfrac; int cx, cy; + if (PCB == NULL) + return; + xfrac = (double) x / (double) view_width; yfrac = (double) y / (double) view_height; @@ -1664,7 +1667,7 @@ } extern Widget lesstif_menubar; -static lesstif_hid_inited = 0; +static int lesstif_hid_inited = 0; static void lesstif_do_export(HID_Attr_Val * options) {