diff --git a/trunk/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java b/trunk/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java index 38459cb8b..1e7088a7b 100644 --- a/trunk/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java +++ b/trunk/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java @@ -829,10 +829,12 @@ public class DefineEditTextTag extends TextTag { for (Word word : paragraph.words) { if (lineLength + word.width <= bounds.getWidth()) { line.addAll(word.records); + lineLength += word.width; } else { lines.add(line); line = new ArrayList<>(); line.addAll(word.records); + lineLength = 0; } } if (!line.isEmpty()) {