X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a509f83054cbc350d39ce06f326211b7ca512a98..8cc00d5fcafccb2fc2c3fa2eda78651a5634aab2:/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)