You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At some sizes the Textarea with enabled Color Markup throws an ArrayOutOfBoundsException
Reproduction steps/code
public class test extends Game {
Stage stage;
@Override
public void render() {
stage.act();
stage.draw();
}
@Override
public void create() {
Skin skin = assetManager.get(AssetVariables.UI_SKIN_JSON, Skin.class); //I guess any Skin will do
stage = new Stage();
TextArea textArea = new TextArea("", skin);
textArea.getStyle().font.getData().markupEnabled = true;
textArea.setText("[RED] nice text [] i like");
textArea.setFillParent(true);
textArea.setPosition(0, 100);
textArea.setSize(200, 100);
stage.addActor(textArea);
}
}
Exception in thread "LWJGL Application" java.lang.ArrayIndexOutOfBoundsException: 16
at com.badlogic.gdx.scenes.scene2d.ui.TextField.calculateOffsets(TextField.java:261)
at com.badlogic.gdx.scenes.scene2d.ui.TextArea.calculateOffsets(TextArea.java:263)
at com.badlogic.gdx.scenes.scene2d.ui.TextField.draw(TextField.java:310)
at com.badlogic.gdx.scenes.scene2d.Group.drawChildren(Group.java:110)
at com.badlogic.gdx.scenes.scene2d.ui.Table.draw(Table.java:110)
at com.badlogic.gdx.scenes.scene2d.ui.Window.draw(Window.java:243)
at com.badlogic.gdx.scenes.scene2d.Group.drawChildren(Group.java:110)
at com.badlogic.gdx.scenes.scene2d.Group.draw(Group.java:57)
at com.badlogic.gdx.scenes.scene2d.Stage.draw(Stage.java:128)
at test.game.render(TestGame.java:217)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
Issue details
At some sizes the Textarea with enabled Color Markup throws an ArrayOutOfBoundsException
Reproduction steps/code
Version of LibGDX and/or relevant dependencies
1.9.2 (the latest)
Stacktrace
Please select the affected platforms
The text was updated successfully, but these errors were encountered: