]> git.saurik.com Git - wxWidgets.git/commitdiff
#
authorRobert Roebling <robert@roebling.de>
Thu, 6 Jan 2005 11:52:05 +0000 (11:52 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 6 Jan 2005 11:52:05 +0000 (11:52 +0000)
  Compile without fontmapper.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/helpdata.cpp

index 9d5e70638d25f088ad42b2cc55609d58069969f6..b942ed09be50cbf3954b280345b69a1792cf2c80 100644 (file)
@@ -700,9 +700,11 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
             charset = linebuf + wxStrlen(_T("charset="));
     } while (lineptr != NULL);
 
-    wxFontEncoding enc;
-    if (charset == wxEmptyString) enc = wxFONTENCODING_SYSTEM;
-    else enc = wxFontMapper::Get()->CharsetToEncoding(charset);
+    wxFontEncoding enc = wxFONTENCODING_SYSTEM;
+#if wxUSE_FONTMAP
+    if (charset != wxEmptyString)
+        enc = wxFontMapper::Get()->CharsetToEncoding(charset);
+#endif
 
     bool rtval = AddBookParam(*fi, enc,
                               title, contents, index, start, fsys.GetPath());