mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-02 02:14:26 +00:00
Issue #640: 2nd text import bug fixed
This commit is contained in:
@@ -328,6 +328,11 @@ public class DefineText2Tag extends TextTag {
|
||||
}
|
||||
break;
|
||||
case TEXT:
|
||||
String txt = (texts == null || textIdx >= texts.length) ? (String) s.values[0] : texts[textIdx++];
|
||||
if (txt == null || (font == null && txt.isEmpty())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (font == null) {
|
||||
throw new ParseException("Font not defined", lexer.yyline());
|
||||
}
|
||||
@@ -354,7 +359,6 @@ public class DefineText2Tag extends TextTag {
|
||||
tr.styleFlagsHasYOffset = true;
|
||||
y = null;
|
||||
}
|
||||
String txt = (texts == null || textIdx >= texts.length) ? (String) s.values[0] : texts[textIdx++];
|
||||
tr.glyphEntries = new GLYPHENTRY[txt.length()];
|
||||
for (int i = 0; i < txt.length(); i++) {
|
||||
char c = txt.charAt(i);
|
||||
|
||||
@@ -335,7 +335,7 @@ public class DefineTextTag extends TextTag {
|
||||
break;
|
||||
case TEXT:
|
||||
String txt = (texts == null || textIdx >= texts.length) ? (String) s.values[0] : texts[textIdx++];
|
||||
if (txt == null) {
|
||||
if (txt == null || (font == null && txt.isEmpty())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user