#451 Can't access Help and General Report Manager pages under Ubuntu 12.04

1.1.0
open
nobody
5
2014-08-06
2014-08-06
Ed Rubinsky
No

Under Ubuntu 12.04 (at least) neither the General report Manager or Help pages can be accessed. Clicking on either one results in a page not found error with the URLs being

fle:///usr/local/share/mmex/help/index.html

fle:///usr/local/share/mmex/help/general_report_manager.html.

when they should be

fle:///usr/local/share/doc/mmex/help/index.html

fle:///usr/local/share/doc/mmex/help/general_report_manager.html.

The problem is that the function getPathDoc in src/patchs.cpp is calling getSharedDir() instead of getDocDir() resulting in the 'share/doc' sub-directory not being included in the path. The following patch seems to fix the problem.

+++ b/src/paths.cpp
@@ -134,7 +134,7 @@ wxString mmex::getPathDoc(const EDocFile& f)

     wxASSERT(f >= 0 && f < DOC_FILES_MAX);

-    wxString path = GetSharedDir().GetPath();
+    wxString path = GetDocDir().GetPath();
     path += wxFileName::GetPathSeparator();
     path += files[f];

Discussion


Anonymous


Cancel   Add attachments