diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
commit | 618dfb51d93898632830f1b87443d3f748780871 (patch) | |
tree | bac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/helpProvider.cpp | |
parent | 3.4 (diff) | |
download | FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2 FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip |
3.5
Diffstat (limited to 'shared/helpProvider.cpp')
-rw-r--r-- | shared/helpProvider.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shared/helpProvider.cpp b/shared/helpProvider.cpp index 9cc4aeed..73c71eb1 100644 --- a/shared/helpProvider.cpp +++ b/shared/helpProvider.cpp @@ -7,7 +7,7 @@ #include "helpProvider.h" #include <wx/help.h> #include "standardPaths.h" - +#include <wx/image.h> namespace { @@ -18,9 +18,11 @@ public: { controller.Initialize(FreeFileSync::getResourceDir() + #ifdef FFS_WIN - wxT("FreeFileSync.chm")); + wxT("FreeFileSync.chm")); #elif defined FFS_LINUX - wxT("Help/FreeFileSync.hhp")); + wxT("Help/FreeFileSync.hhp")); + + wxImage::AddHandler(new wxJPEGHandler); //ownership passed; display .jpg files correctly in Linux #endif } @@ -29,7 +31,7 @@ public: if (section.empty()) controller.DisplayContents(); else - controller.DisplaySection(section); + controller.DisplaySection(section); } private: |