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:
@@ -221,7 +221,7 @@ bool wxHtmlTag::HasParam(const wxString& par) const
|
|||||||
if (*p == 0) return FALSE;
|
if (*p == 0) return FALSE;
|
||||||
for (st2 = st, p2 = p; ; st2++)
|
for (st2 = st, p2 = p; ; st2++)
|
||||||
{
|
{
|
||||||
if (*p2 == 0) return TRUE;
|
if (*p2 == 0 && *st2 == wxT('=')) return TRUE;
|
||||||
if (*st2 == 0) return FALSE;
|
if (*st2 == 0) return FALSE;
|
||||||
if (*p2 != *st2) p2 = &invalid;
|
if (*p2 != *st2) p2 = &invalid;
|
||||||
if (*p2 == *st2) p2++;
|
if (*p2 == *st2) p2++;
|
||||||
@@ -257,7 +257,7 @@ wxString wxHtmlTag::GetParam(const wxString& par, bool with_commas) const
|
|||||||
if (*p == 0) return wxEmptyString;
|
if (*p == 0) return wxEmptyString;
|
||||||
for (st2 = st, p2 = p; ; st2++)
|
for (st2 = st, p2 = p; ; st2++)
|
||||||
{
|
{
|
||||||
if (*p2 == 0) // found
|
if (*p2 == 0 && *st2 == wxT('=')) // found
|
||||||
{
|
{
|
||||||
wxString fnd = wxEmptyString;
|
wxString fnd = wxEmptyString;
|
||||||
st2++; // '=' character
|
st2++; // '=' character
|
||||||
|
Reference in New Issue
Block a user