]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_combo.cpp
Added wxUSE_TOOLTIPS guard for previous patch
[wxWidgets.git] / src / xrc / xh_combo.cpp
index 3d708c3a49256e4b365ea075931bc52fb97947a6..03fa009eb4923ca3c4bb45b09eb6bf281f4e6cb5 100644 (file)
@@ -25,6 +25,8 @@
 
 #if wxUSE_COMBOBOX
 
+IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
+
 wxComboBoxXmlHandler::wxComboBoxXmlHandler() 
 : wxXmlResourceHandler() , m_insideBox(FALSE)
 {
@@ -83,7 +85,10 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource()
         // handle <item>Label</item>
 
         // add to the list
-        strList.Add(wxGetTranslation(GetNodeContent(m_node)));
+        wxString str = GetNodeContent(m_node);
+        if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
+            str = wxGetTranslation(str);
+        strList.Add(str);
 
         return NULL;
     }