};
extern "C" {
- extern void XmeRenderTableGetDefaultFont(XmFontList, XFontStruct **);
+ extern Boolean XmeRenderTableGetDefaultFont(XmFontList, XFontStruct **);
}
Application::Application(char *name,
{
XmFontType _type_return;
fs = (XFontStruct *)XmFontListEntryGetFont(entry, &_type_return);
- if (_type_return != XmFONT_IS_FONT)
+ if (_type_return != XmFONT_IS_FONT) {
XmeRenderTableGetDefaultFont(userFont, &fs);
- font = fs->fid;
+ }
+ if (fs) {
+ font = fs->fid;
+ }
}
XmFontListFreeFontContext(context);
}
gc = XCreateGC(tmp->display, tmp_pixmap, 0, NULL);
tmp_pixmap = XCreatePixmap(tmp->display, tmp->root, 1, 1, 1);
gc_mask = XCreateGC(tmp->display, tmp_pixmap, 0, NULL);
- XSetFont(tmp->display, gc, tmp->font);
+ if (tmp->font) {
+ XSetFont(tmp->display, gc, tmp->font);
+ }
FirstTime = false;
}