Avoid substr exception when using on-screen keyboard

This commit is contained in:
Benau 2019-06-14 11:32:47 +08:00
parent c3a719cd4b
commit d51f7f4448

View File

@ -1386,7 +1386,10 @@ void CGUIEditBox::calculateScrollPos()
void CGUIEditBox::setTextMarkers(s32 begin, s32 end)
{
if (GUIEngine::ScreenKeyboard::isActive())
{
m_mark_begin = m_mark_end = 0;
return;
}
if (begin != m_mark_begin || end != m_mark_end)
{