summaryrefslogtreecommitdiff
path: root/shared/helpProvider.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
commit618dfb51d93898632830f1b87443d3f748780871 (patch)
treebac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/helpProvider.cpp
parent3.4 (diff)
downloadFreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip
3.5
Diffstat (limited to 'shared/helpProvider.cpp')
-rw-r--r--shared/helpProvider.cpp10
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:
bgstack15