xmlgraphics-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46520] New: HeadlessException in DefaultImageContext (patch attached)
Date Tue, 13 Jan 2009 11:29:33 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46520

           Summary: HeadlessException in DefaultImageContext (patch
                    attached)
           Product: XMLGraphicsCommons
           Version: Trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Utilities
        AssignedTo: general@xmlgraphics.apache.org
        ReportedBy: jason@plutext.org


If running headless, constructor DefaultImageContext() currently throws an
exception.

Patch attached:

   public DefaultImageContext() {

        try {

                        this.sourceResolution = Toolkit.getDefaultToolkit()
                                        .getScreenResolution();

                } catch (HeadlessException he) {

                        this.sourceResolution = 160;
                }
    }


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org


Mime
View raw message