Fixed BUG0005

This commit is contained in:
mmk2410 2015-01-04 19:33:01 +01:00
parent 7f13ad0ce6
commit c99d23eafd

View file

@ -801,6 +801,9 @@ public class Morse extends JFrame {
} else { } else {
for (int c = input.length(); c > 0; c--) { for (int c = input.length(); c > 0; c--) {
if (input.toString().startsWith(" ")) { if (input.toString().startsWith(" ")) {
if(output.toString().endsWith(" ")){
output.delete(output.length() - 3 , output.length());
}
output.append(" "); output.append(" ");
input.delete(0, 1); input.delete(0, 1);
} else if (input.toString().startsWith("A")) { } else if (input.toString().startsWith("A")) {