]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_combo.cpp
Applied patch [ 709618 ] fixes drawing position in wxPrinterDC::DoBlit()
[wxWidgets.git] / src / xrc / xh_combo.cpp
index 3d708c3a49256e4b365ea075931bc52fb97947a6..2a17231c4f939cdd60b6ffd553bab2430b34cfe2 100644 (file)
@@ -83,7 +83,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;
     }