]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpdata.cpp
added common regex
[wxWidgets.git] / src / html / helpdata.cpp
index 7cf0465e1e6f067ecdea3ee1be4bf6af548dc5ea..6ba01be7f7781e2e3a0a240c69b6009c1f7477b9 100644 (file)
@@ -569,8 +569,8 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
                  charset = wxEmptyString;
 
 #ifdef __WXMAC__
-        // wxIsAbsolutePath is broken
-        bookFull = wxGetCwd() + ":" + book;
+        if (wxIsAbsolutePath(book)) bookFull = book;
+        else bookFull = wxGetCwd() + book; // no slash or dot
         wxFileName fn( bookFull );
         bookFull = fn.GetFullPath( wxPATH_UNIX );
 #else