Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
833 B

diff -Naur xchm-1.23.orig/src/chmframe.cpp xchm-1.23/src/chmframe.cpp
--- xchm-1.23.orig/src/chmframe.cpp 2013-08-30 10:31:38.000000000 +0200
+++ xchm-1.23/src/chmframe.cpp 2013-12-26 23:34:59.412522347 +0100
@@ -265,7 +265,7 @@
enu.EnumerateFacenames();
_normalFonts = new wxArrayString;
-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
+#if wxMAJOR_VERSION == 3 || (wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7)
*_normalFonts = enu.GetFacenames();
#else
*_normalFonts = *enu.GetFacenames();
@@ -278,7 +278,7 @@
enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, TRUE);
_fixedFonts = new wxArrayString;
-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
+#if wxMAJOR_VERSION == 3 || (wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7)
*_fixedFonts = enu.GetFacenames();
#else
*_fixedFonts = *enu.GetFacenames();