When loading wxTextCtrl from XRC files, only call SetHint if the XRC specifies a hint. Otherwise an assert is triggered on multi-line text controls.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Tim Kosse
2014-06-08 16:39:04 +00:00
parent 4e269b8628
commit 14da079a04

View File

@@ -72,7 +72,8 @@ wxObject *wxTextCtrlXmlHandler::DoCreateResource()
if (HasParam(wxT("maxlength")))
text->SetMaxLength(GetLong(wxT("maxlength")));
text->SetHint(GetText(wxS("hint")));
if (HasParam(wxT("hint")))
text->SetHint(GetText(wxS("hint")));
return text;
}