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:
parent
288a301b97
commit
8b6a5c88ab
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user