From 31b045f68d23b3a426e4fad2a158ad92022991f9 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Thu, 12 Feb 2015 19:43:04 +0100 Subject: [PATCH] Dynamic text: new line/paragraph rendering fixed 2 --- .../src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java index 0a721cad4..1dcc9577f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java @@ -894,9 +894,9 @@ public class DefineEditTextTag extends TextTag { List> lines; if (multiline && wordWrap) { lines = new ArrayList<>(); - int lineLength = 0; for (Paragraph paragraph : textModel.paragraphs) { List line = new ArrayList<>(); + int lineLength = 0; for (Word word : paragraph.words) { if (lineLength + word.width <= bounds.getWidth()) { line.addAll(word.records);