From 2f31ee747d693ed444334c84b4e2b112ef142531 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 15 Jan 2021 23:18:13 +0900 Subject: facking glstatemanager --- .../java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java index 39808808..49c36d3c 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java @@ -64,6 +64,7 @@ public class MTextField extends MPanel { // draw cursor if (cursor != -1) { + if (cursor > text.length()) cursor = text.length(); int x = fr.getStringWidth(text.substring(0, cursor)) - xOffset; cursorBlickTicker++; if (cursorBlickTicker < 10) -- cgit