Dynamic text: new line/paragraph rendering fixed 2

This commit is contained in:
honfika@gmail.com
2015-02-12 19:43:04 +01:00
parent bbf33e461c
commit 31b045f68d

View File

@@ -894,9 +894,9 @@ public class DefineEditTextTag extends TextTag {
List<List<SameStyleTextRecord>> lines;
if (multiline && wordWrap) {
lines = new ArrayList<>();
int lineLength = 0;
for (Paragraph paragraph : textModel.paragraphs) {
List<SameStyleTextRecord> line = new ArrayList<>();
int lineLength = 0;
for (Word word : paragraph.words) {
if (lineLength + word.width <= bounds.getWidth()) {
line.addAll(word.records);