https://issues.apache.org/bugzilla/show_bug.cgi?id=45572
Summary: PreferenceManager gerPoint always returns default value
Product: Batik
Version: 1.7
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Utilities
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
There is a bug in the org.apache.batik.util.PreferenceManager where the
function public Point getPoint(String key) always returns the default value for
a given key.
This is due to what looks like a simple cut and paste error in the code, and
can be resolved by removing the 4 marked lines in the code snippet below.
x = Integer.parseInt(token);
if (!st.hasMoreTokens()) {
internal.remove(key);
return defaultValue;
}
token = st.nextToken();
y = Integer.parseInt(token);
-- if (!st.hasMoreTokens()) {
-- internal.remove(key);
-- return defaultValue;
-- }
result.setLocation(x,y);
return result;
--
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]