Translate wxCollapsiblePane text when loading from XRC

Use the correct GetText() instead of GetParamValue() for getting the user-readable
"text" string from XRC.
This commit is contained in:
ousnius 2017-02-01 19:13:03 +01:00 committed by VZ
parent 288a301b97
commit 8b6a5c88ab

View File

@ -61,7 +61,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource()
{
XRC_MAKE_INSTANCE(ctrl, wxCollapsiblePane)
wxString label = GetParamValue(wxT("label"));
wxString label = GetText(wxT("label"));
if (label.empty())
{
ReportParamError("label", "label cannot be empty");