mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Fixed an issue where pressing the 'Clear' button in the text editor and then entering some value in the input field crashed the application
This commit is contained in:
parent
ed1d15dbac
commit
45fc13a43e
|
@ -344,6 +344,9 @@ void TextEditComponent::onTextChanged()
|
|||
|
||||
if (mCursor > static_cast<int>(mText.length()))
|
||||
mCursor = static_cast<int>(mText.length());
|
||||
|
||||
if (mCursorShapedText > static_cast<int>(Utils::String::unicodeLength(mText)))
|
||||
mCursorShapedText = static_cast<int>(Utils::String::unicodeLength(mText));
|
||||
}
|
||||
|
||||
void TextEditComponent::onCursorChanged()
|
||||
|
|
Loading…
Reference in a new issue