]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't pass NULL to wxDir, rather hop over when trying to find dir with translation
authorRobert Roebling <robert@roebling.de>
Fri, 16 Jul 2010 10:31:38 +0000 (10:31 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 16 Jul 2010 10:31:38 +0000 (10:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/translation.cpp

index 23b57a056ce3339b3ac83446ebcebedb128eb19c..c6bb8440e0b53a86a3996d833ea0620bf7e811a2 100644 (file)
@@ -1741,6 +1741,8 @@ wxArrayString wxFileTranslationsLoader::GetAvailableTranslations(const wxString&
           i != prefixes.end();
           ++i )
     {
+        if (i->length() == 0)
+            continue;
         wxDir dir;
         if ( !dir.Open(*i) )
             continue;