Avoid substr exception when using on-screen keyboard
This commit is contained in:
parent
c3a719cd4b
commit
d51f7f4448
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user