From 5a969262e1de36b191f1e4b6c3de1b2c39ac1fb0 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Thu, 6 Jan 2005 11:52:05 +0000 Subject: [PATCH] # Compile without fontmapper. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/helpdata.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/html/helpdata.cpp b/src/html/helpdata.cpp index 9d5e70638d..b942ed09be 100644 --- a/src/html/helpdata.cpp +++ b/src/html/helpdata.cpp @@ -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()); -- 2.45.2