poptreeitem fix

This commit is contained in:
Jindra Pet��k
2013-04-13 18:25:48 +02:00
parent e9d0900908
commit 116bf760f0
12 changed files with 58 additions and 17 deletions
@@ -57,7 +57,9 @@ public class SwitchItem extends LoopItem implements Block {
}
ret += Graph.INDENTOPEN + "\r\n";
for (int j = 0; j < caseCommands.get(i).size(); j++) {
ret += caseCommands.get(i).get(j).toStringSemicoloned(localData) + "\r\n";
if (!caseCommands.get(i).get(j).isEmpty()) {
ret += caseCommands.get(i).get(j).toStringSemicoloned(localData) + "\r\n";
}
}
ret += Graph.INDENTCLOSE + "\r\n";
}
@@ -66,7 +68,9 @@ public class SwitchItem extends LoopItem implements Block {
ret += hilight("default") + ":\r\n";
ret += Graph.INDENTOPEN + "\r\n";
for (int j = 0; j < defaultCommands.size(); j++) {
ret += defaultCommands.get(j).toStringSemicoloned(localData) + "\r\n";
if (!defaultCommands.get(j).isEmpty()) {
ret += defaultCommands.get(j).toStringSemicoloned(localData) + "\r\n";
}
}
ret += Graph.INDENTCLOSE + "\r\n";
}