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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]