Fixed an issue where text shaping could be permanently disabled after editing text

This commit is contained in:
Leon Styhre 2024-08-22 00:10:13 +02:00
parent 256ed24621
commit b0a7e76974

View file

@ -55,6 +55,8 @@ TextEditComponent::TextEditComponent(bool multiLine)
TextEditComponent::~TextEditComponent()
{
mEditText->setTextShaping(true);
// Always disable text input when destroying this component.
SDL_StopTextInput();
}