Fix crash when using textarea without form
This commit is contained in:
parent
b24f979569
commit
a24400c059
1 changed files with 12 additions and 14 deletions
|
@ -1681,11 +1681,9 @@ namespace NLGUI
|
||||||
break;
|
break;
|
||||||
case HTML_TEXTAREA:
|
case HTML_TEXTAREA:
|
||||||
{
|
{
|
||||||
// Add the editbox
|
_TextArea = false;
|
||||||
// nlinfo("textarea temp '%s'", _TextAreaTemplate.c_str());
|
if (!(_Forms.empty()))
|
||||||
// nlinfo("textarea name '%s'", _TextAreaName.c_str());
|
{
|
||||||
// nlinfo("textarea %d %d", _TextAreaRow, _TextAreaCols);
|
|
||||||
// nlinfo("textarea content '%s'", _TextAreaContent.toUtf8().c_str());
|
|
||||||
CInterfaceGroup *textArea = addTextArea (_TextAreaTemplate, _TextAreaName.c_str (), _TextAreaRow, _TextAreaCols, true, _TextAreaContent, _TextAreaMaxLength);
|
CInterfaceGroup *textArea = addTextArea (_TextAreaTemplate, _TextAreaName.c_str (), _TextAreaRow, _TextAreaCols, true, _TextAreaContent, _TextAreaMaxLength);
|
||||||
if (textArea)
|
if (textArea)
|
||||||
{
|
{
|
||||||
|
@ -1695,7 +1693,7 @@ namespace NLGUI
|
||||||
entry.TextArea = textArea;
|
entry.TextArea = textArea;
|
||||||
_Forms.back().Entries.push_back (entry);
|
_Forms.back().Entries.push_back (entry);
|
||||||
}
|
}
|
||||||
_TextArea = false;
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case HTML_TITLE:
|
case HTML_TITLE:
|
||||||
|
|
Loading…
Reference in a new issue