summaryrefslogtreecommitdiff
blob: a9545cf5b568f0c838a568f727f5645772085123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Fix code to compile with wxwidgets 3.0
 Drops support for wx < 2.7, which is just not relevant now.  And in fact
 configure.ac checks for at least 2.8.0.
Author: Olly Betts <olly@survex.com>
Last-Update: 2014-03-07

--- xchm-1.23.orig/src/chmframe.cpp
+++ xchm-1.23/src/chmframe.cpp
@@ -265,11 +265,7 @@ void CHMFrame::OnChangeFonts(wxCommandEv
 		enu.EnumerateFacenames();
 		_normalFonts = new wxArrayString;
 
-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
 		*_normalFonts = enu.GetFacenames();
-#else
-		*_normalFonts = *enu.GetFacenames();
-#endif
 		_normalFonts->Sort();
 	}
 
@@ -278,11 +274,7 @@ void CHMFrame::OnChangeFonts(wxCommandEv
 		enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, TRUE);
 		_fixedFonts = new wxArrayString;
 
-#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
 		*_fixedFonts = enu.GetFacenames();
-#else
-		*_fixedFonts = *enu.GetFacenames();
-#endif
 		_fixedFonts->Sort();
 	}