From 269982f8646cccc4ab1f6ca2e3315f4496a90dcd Mon Sep 17 00:00:00 2001 From: Honfika Date: Wed, 5 Mar 2014 00:06:13 +0100 Subject: [PATCH] wordwrap fix --- .../src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java | 2 ++ 1 file changed, 2 insertions(+) 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()) {