diff --git a/docs/changes.txt b/docs/changes.txt index 0eebedff24..7c306a61f8 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -557,6 +557,14 @@ Major new features in this release was added. +3.0: (released 2013-09-??) +-------------------------- + +All (GUI): + +- Fix crash in wxHTML on mal-formed elements (LukasK). + + 2.9.5: (released 2013-07-15) ---------------------------- diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index bce9c33235..dae30f3b0b 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -95,6 +95,7 @@ wxHtmlLinkInfo *wxHtmlImageMapAreaCell::GetLink( int x, int y ) const switch (type) { case RECT: + if ( coords.GetCount() == 4 ) { int l, t, r, b; @@ -106,9 +107,10 @@ wxHtmlLinkInfo *wxHtmlImageMapAreaCell::GetLink( int x, int y ) const { return m_Link; } - break; } + break; case CIRCLE: + if ( coords.GetCount() == 3 ) { int l, t, r; double d;