Fixed: Crash when <select> element was without <form>

This commit is contained in:
Nimetu 2016-11-13 23:06:35 +02:00
parent 8247727acb
commit 92b01796a0

View file

@ -2444,6 +2444,7 @@ namespace NLGUI
} }
break; break;
case HTML_OPTION: case HTML_OPTION:
if (!(_Forms.empty()) && !(_Forms.back().Entries.empty()))
{ {
// insert the parsed text into the select control // insert the parsed text into the select control
CDBGroupComboBox *cb = _Forms.back().Entries.back().ComboBox; CDBGroupComboBox *cb = _Forms.back().Entries.back().ComboBox;