Skip to content

TextFieldWidget: clamp firstCharacterIndex when text is changed#1397

Open
eutro wants to merge 1 commit intoshedaniel:10.x-1.19.3from
eutro:clamp-fci
Open

TextFieldWidget: clamp firstCharacterIndex when text is changed#1397
eutro wants to merge 1 commit intoshedaniel:10.x-1.19.3from
eutro:clamp-fci

Conversation

@eutro
Copy link
Copy Markdown

@eutro eutro commented Apr 22, 2023

Fixes a spurious crash in render(..) when it may have been out of bounds before.

I had this crash happen twice on 1.18.2 in Stoneblock 3 (crash log). I don't have steps to reproduce, but I haven't had the issue since applying the fix (since, logically, the value can no longer be out of bounds). This may be a band-aid fix for a subtler bug, but at least it stops things from blowing up.

Fixes a spurious crash in `render(..)` when it was out of bounds before
@shedaniel shedaniel self-requested a review May 29, 2023 05:06
@shedaniel shedaniel added the bug Something isn't working label May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants