X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..03d51a2d4095e3a2da174f8d6963c4802e636e95:/src/html/helpdata.cpp diff --git a/src/html/helpdata.cpp b/src/html/helpdata.cpp index f4866285a2..88cad1d2a8 100644 --- a/src/html/helpdata.cpp +++ b/src/html/helpdata.cpp @@ -6,7 +6,7 @@ // Author: Harm van der Heijden and Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) Harm van der Heijden and Vaclav Slavik -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) @@ -543,6 +543,7 @@ bool wxHtmlHelpData::AddBookParam(const wxFSFile& bookfile, // Now store the contents range bookr->SetContentsRange(cont_start, m_ContentsCnt); +#if wxUSE_FONTMAP // Convert encoding, if neccessary: if (encoding != wxFONTENCODING_SYSTEM) { @@ -559,6 +560,11 @@ bool wxHtmlHelpData::AddBookParam(const wxFSFile& bookfile, conv.Convert(m_Contents[i].m_Name); } } +#else + wxUnusedVar(IndexOld); + wxUnusedVar(ContentsOld); + wxASSERT_MSG(encoding == wxFONTENCODING_SYSTEM, wxT("Encoding can't be converted")); +#endif m_BookRecords.Add(bookr); if (m_IndexCnt > 0)