X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88a7a4e10ed18f81a576dcd866cfbf02bf404c00..3ab296d9eb6d351eb1d2238f3e6ff2f5e6123861:/src/xrc/xh_choic.cpp?ds=inline diff --git a/src/xrc/xh_choic.cpp b/src/xrc/xh_choic.cpp index a3903f7836..04b726e7c0 100644 --- a/src/xrc/xh_choic.cpp +++ b/src/xrc/xh_choic.cpp @@ -15,16 +15,15 @@ #pragma hdrstop #endif -#if wxUSE_XRC +#if wxUSE_XRC && wxUSE_CHOICE #include "wx/xrc/xh_choic.h" #ifndef WX_PRECOMP #include "wx/intl.h" + #include "wx/choice.h" #endif -#include "wx/choice.h" - IMPLEMENT_DYNAMIC_CLASS(wxChoiceXmlHandler, wxXmlResourceHandler) wxChoiceXmlHandler::wxChoiceXmlHandler() @@ -83,7 +82,7 @@ wxObject *wxChoiceXmlHandler::DoCreateResource() // add to the list wxString str = GetNodeContent(m_node); if (m_resource->GetFlags() & wxXRC_USE_LOCALE) - str = wxGetTranslation(str); + str = wxGetTranslation(str, m_resource->GetDomain()); strList.Add(str); return NULL; @@ -96,4 +95,4 @@ bool wxChoiceXmlHandler::CanHandle(wxXmlNode *node) (m_insideBox && node->GetName() == wxT("item"))); } -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_CHOICE