]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_choic.cpp
fix wxCheckListBox which was completely broken by the Unicode changes
[wxWidgets.git] / src / xrc / xh_choic.cpp
index 2f91e382a8f204a5b9afc96343094dfb3d9d9b27..f2dd0bdb43b5f3ed90444be3996bca6da64f407d 100644 (file)
@@ -77,7 +77,10 @@ wxObject *wxChoiceXmlHandler::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;
     }