mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 18:48:08 +00:00
Dynamic text: new line/paragraph rendering fixed 2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user