Fixed: ah:html_submit_form without caller object

feature/pre-code-move
Nimetu 5 years ago
parent 2191d21bce
commit b13d51242c

@ -1120,8 +1120,8 @@ class CHandlerHTMLSubmitForm : public IActionHandler
return;
}
sint32 x = pCaller->getEventX();
sint32 y = pCaller->getEventY();
sint32 x = pCaller ? pCaller->getEventX() : 0;
sint32 y = pCaller ? pCaller->getEventY() : 0;
CInterfaceElement *element = CWidgetManager::getInstance()->getElementFromId(container);
{
@ -1131,6 +1131,10 @@ class CHandlerHTMLSubmitForm : public IActionHandler
{
groupHtml->submitForm(button, x, y);
}
else
{
nlwarning("CGroupHTML with id '%s' not found.", container.c_str());
}
}
}
};

Loading…
Cancel
Save