]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/helphtml.cpp
"continue;" restored to prevent the app from going into infinite loop
[wxWidgets.git] / src / generic / helphtml.cpp
index 228b436b11c35fcb4a3842ff6b4bf5cd7b630602..13ea6eeecf919a5f9acbd3c950789b16eb46ddf7 100644 (file)
@@ -115,6 +115,15 @@ wxHTMLHelpControllerBase::LoadFile(const wxString& ifile)
          newfile << WXEXTHELP_SEPARATOR << wxGetLocale()->GetName();
          if(wxDirExists(newfile))
             file = newfile;
+         else
+         {
+            newfile = WXEXTHELP_SEPARATOR;
+            const char *cptr = wxGetLocale()->GetName().c_str();
+            while(*cptr && *cptr != '_')
+               newfile << *(cptr++);
+            if(wxDirExists(newfile))
+               file = newfile;
+         }
       }
       
       if(! wxDirExists(file))