fixed yet another bug in wxHtmlTag's parameters parser

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-06-20 13:16:15 +00:00
parent 2004cad1ed
commit a914db0fb3

View File

@@ -221,7 +221,7 @@ bool wxHtmlTag::HasParam(const wxString& par) const
if (*p == 0) return FALSE;
for (st2 = st, p2 = p; ; st2++)
{
if (*p2 == 0) return TRUE;
if (*p2 == 0 && *st2 == wxT('=')) return TRUE;
if (*st2 == 0) return FALSE;
if (*p2 != *st2) p2 = &invalid;
if (*p2 == *st2) p2++;
@@ -257,7 +257,7 @@ wxString wxHtmlTag::GetParam(const wxString& par, bool with_commas) const
if (*p == 0) return wxEmptyString;
for (st2 = st, p2 = p; ; st2++)
{
if (*p2 == 0) // found
if (*p2 == 0 && *st2 == wxT('=')) // found
{
wxString fnd = wxEmptyString;
st2++; // '=' character