X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..93d23d8fafafbde622aaff99b3520694b7431d4e:/src/html/helpdata.cpp diff --git a/src/html/helpdata.cpp b/src/html/helpdata.cpp index c0418b8d39..88cad1d2a8 100644 --- a/src/html/helpdata.cpp +++ b/src/html/helpdata.cpp @@ -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)