fixed cell height/width settings bug

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@130 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
kascade 2008-06-14 03:07:14 +00:00
parent 22de4e0e62
commit d8951edb41
1 changed files with 5 additions and 5 deletions

View File

@ -46,12 +46,12 @@ public final class DOMSettingsUnmarshaller {
if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("window")) {
settings = unmarshallWindow(n, settings);
} else if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("options")) {
settings = unmarshallOptions(n, settings);
} else if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("files")) {
settings = unmarshallFiles(n, settings);
} else if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("options")) {
settings = unmarshallOptions(n, settings);
} else if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("tabledisplay")) {
settings = unmarshallTableDisplay(n, settings);
@ -161,8 +161,8 @@ public final class DOMSettingsUnmarshaller {
unmarshallAttribute(n, "size", 12)));
} else if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("cellsize")) {
settings.setCellSize(new Dimension(unmarshallAttribute(n, "x", 42),
unmarshallAttribute(n, "y", 18)));
settings.setCellSize(new Dimension(unmarshallAttribute(n, "width", 42),
unmarshallAttribute(n, "height", 18)));
} else if (n.getNodeType() == ELEMENT_NODE && n.getNodeName().equalsIgnoreCase("colors")) {
settings = unmarshallColors(n, settings);