]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_listb.cpp
Prevents crashes caused by negative line count being passed to wrapping functions...
[wxWidgets.git] / src / xrc / xh_listb.cpp
index 0deaa03beddd11f762d3b0625a9b71fd64dc8383..a319449d20ccc2e3d87311c7b679d70e49462009 100644 (file)
@@ -88,7 +88,7 @@ wxObject *wxListBoxXmlHandler::DoCreateResource()
         // add to the list
         wxString str = GetNodeContent(m_node);
         if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
         // 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;
         strList.Add(str);
 
         return NULL;