This commit is contained in:
benfry
2003-01-06 02:00:30 +00:00
parent 99988430fc
commit 2211251fe4

View File

@@ -1055,8 +1055,8 @@ public class PdeBase extends Frame implements ActionListener {
String fontname = st.nextToken();
String fontstyle = st.nextToken();
return new Font(fontname,
(fonstyle.indexOf("bold") ? Font.BOLD : 0) |
(fonstyle.indexOf("italic") ? Font.ITALIC : 0),
((fontstyle.indexOf("bold") != -1) ? Font.BOLD : 0) |
((fontstyle.indexOf("italic") != -1) ? Font.ITALIC : 0),
Integer.parseInt(st.nextToken()));
}