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:
@@ -61,7 +61,7 @@ wxObject *wxCollapsiblePaneXmlHandler::DoCreateResource()
|
|||||||
{
|
{
|
||||||
XRC_MAKE_INSTANCE(ctrl, wxCollapsiblePane)
|
XRC_MAKE_INSTANCE(ctrl, wxCollapsiblePane)
|
||||||
|
|
||||||
wxString label = GetParamValue(wxT("label"));
|
wxString label = GetText(wxT("label"));
|
||||||
if (label.empty())
|
if (label.empty())
|
||||||
{
|
{
|
||||||
ReportParamError("label", "label cannot be empty");
|
ReportParamError("label", "label cannot be empty");
|
||||||
|
Reference in New Issue
Block a user