Menu

#23 HeadlessException in HtmlValues

closed-fixed
nobody
None
5
2008-01-19
2008-01-19
Anonymous
No

In org.lobobrowser.html.style.HtmlValues#getPixelSize(String, RenderState, int) a HeadlessException is thrown when trying to determine the screenresolution.

Instead of

int dpi = Toolkit.getDefaultToolkit().getScreenResolution();

I would propose to use:

int dpi = GraphicsEnvironment.isHeadless()? 72 : Toolkit.getDefaultToolkit().getScreenResolution();

Discussion

  • Lobo Project Lead

    Logged In: YES
    user_id=1837185
    Originator: NO

    Thanks. This is fixed (as suggested) in CVS, and should appear in 0.98.

     
  • Lobo Project Lead

    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.