projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handler when the cases when the MGL timer wraps
[wxWidgets.git]
/
src
/
html
/
helpdata.cpp
diff --git
a/src/html/helpdata.cpp
b/src/html/helpdata.cpp
index 41d62f45431342c02e7abd70af846d7adbc6a2ab..b942ed09be50cbf3954b280345b69a1792cf2c80 100644
(file)
--- a/
src/html/helpdata.cpp
+++ b/
src/html/helpdata.cpp
@@
-78,6
+78,11
@@
wxHtmlHelpIndexCompareFunc(wxHtmlHelpDataItem **a, wxHtmlHelpDataItem **b)
wxHtmlHelpDataItem *ia = *a;
wxHtmlHelpDataItem *ib = *b;
wxHtmlHelpDataItem *ia = *a;
wxHtmlHelpDataItem *ib = *b;
+ if (ia == NULL)
+ return -1;
+ if (ib == NULL)
+ return 1;
+
if (ia->parent == ib->parent)
{
return ia->name.CmpNoCase(ib->name);
if (ia->parent == ib->parent)
{
return ia->name.CmpNoCase(ib->name);
@@
-681,7
+686,7
@@
bool wxHtmlHelpData::AddBook(const wxString& book)
lineptr = ReadLine(lineptr, linebuf, 300);
for (wxChar *ch = linebuf; *ch != wxT('\0') && *ch != wxT('='); ch++)
lineptr = ReadLine(lineptr, linebuf, 300);
for (wxChar *ch = linebuf; *ch != wxT('\0') && *ch != wxT('='); ch++)
- *ch =
t
olower(*ch);
+ *ch =
(wxChar)wxT
olower(*ch);
if (wxStrstr(linebuf, _T("title=")) == linebuf)
title = linebuf + wxStrlen(_T("title="));
if (wxStrstr(linebuf, _T("title=")) == linebuf)
title = linebuf + wxStrlen(_T("title="));
@@
-695,9
+700,11
@@
bool wxHtmlHelpData::AddBook(const wxString& book)
charset = linebuf + wxStrlen(_T("charset="));
} while (lineptr != NULL);
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());
bool rtval = AddBookParam(*fi, enc,
title, contents, index, start, fsys.GetPath());
@@
-971,7
+978,7
@@
void wxHtmlSearchEngine::LookFor(const wxString& keyword, bool case_sensitive, b
m_WholeWords = whole_words_only;
m_Keyword = keyword;
m_WholeWords = whole_words_only;
m_Keyword = keyword;
- if (m_CaseSensitive)
+ if (
!
m_CaseSensitive)
m_Keyword.LowerCase();
}
m_Keyword.LowerCase();
}