mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 19:05:34 +01:00
fix bug #790 xml.getIntAttribute() returns a float
This commit is contained in:
@@ -876,13 +876,13 @@ public class XMLElement implements Serializable {
|
||||
return attr.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String getStringAttribute(String name) {
|
||||
return getAttribute(name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getStringAttribute(String name, String defaultValue) {
|
||||
return getAttribute(name, defaultValue);
|
||||
}
|
||||
@@ -895,11 +895,11 @@ public class XMLElement implements Serializable {
|
||||
}
|
||||
|
||||
|
||||
public float getIntAttribute(String name) {
|
||||
public int getIntAttribute(String name) {
|
||||
return getIntAttribute(name, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the value of an attribute.
|
||||
*
|
||||
@@ -936,8 +936,8 @@ public class XMLElement implements Serializable {
|
||||
public float getFloatAttribute(String name) {
|
||||
return getFloatAttribute(name, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the value of an attribute.
|
||||
*
|
||||
@@ -974,8 +974,8 @@ public class XMLElement implements Serializable {
|
||||
public double getDoubleAttribute(String name) {
|
||||
return getDoubleAttribute(name, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns the value of an attribute.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user