< prev index next >
src/java.desktop/unix/native/common/awt/awt_Font.c
Print this page
@@ -636,11 +636,11 @@
/*fprintf(stderr,"LoadFont: %s\n", fontSpec); */
xfont = XLoadQueryFont(display, fontSpec);
/* XXX: sometimes XLoadQueryFont returns a bogus font structure */
/* with negative ascent. */
- if (xfont == (Font) NULL || xfont->ascent < 0) {
+ if (xfont == NULL || xfont->ascent < 0) {
if (xfont != NULL) {
XFreeFont(display, xfont);
}
if (foundry != anyfoundry) { /* Use ptr comparison here, not strcmp */
/* Try any other foundry before messing with the sizes */
< prev index next >