X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4cdb8e430c2b16b5a179323a09bc1426f20f574c..bf2c43c76e2819be443ab1d830ab68d9569d66b1:/src/html/m_image.cpp diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index bce9c33235..d1f550212e 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -2,7 +2,6 @@ // Name: src/html/m_image.cpp // Purpose: wxHtml module for displaying images // Author: Vaclav Slavik -// RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik, Joel Lucsy // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -95,6 +94,7 @@ wxHtmlLinkInfo *wxHtmlImageMapAreaCell::GetLink( int x, int y ) const switch (type) { case RECT: + if ( coords.GetCount() == 4 ) { int l, t, r, b; @@ -106,9 +106,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;