From 8b6a5c88ab74819833c456339a82bbbf085bb0af Mon Sep 17 00:00:00 2001 From: ousnius Date: Wed, 1 Feb 2017 19:13:03 +0100 Subject: [PATCH] Translate wxCollapsiblePane text when loading from XRC Use the correct GetText() instead of GetParamValue() for getting the user-readable "text" string from XRC. --- src/xrc/xh_collpane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrc/xh_collpane.cpp b/src/xrc/xh_collpane.cpp index b935fe4243..e4125bb0d6 100644 --- a/src/xrc/xh_collpane.cpp +++ b/src/xrc/xh_collpane.cpp @@ -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");