bug 116: x11 file dialog
[org.ibex.core.git] / src / org / ibex / Box.java
index 6bd6ddf..90fd499 100644 (file)
@@ -166,7 +166,7 @@ public final class Box extends JSScope implements Scheduler.Task {
 
     // Instance Methods /////////////////////////////////////////////////////////////////////
 
-    public int fontSize() { return (font == null ? DEFAULT_FONT : font).pointsize; }
+    public final int fontSize() { return font == null ? DEFAULT_FONT.pointsize : font.pointsize; }
 
     /** invoked when a resource needed to render ourselves finishes loading */
     public void perform() throws JSExn {