X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58bd6224acb5b8dce46abbc3f3df7eae346c9859..cc9a39576ab6edb139c9bb77d01f4118853e04d2:/src/html/m_image.cpp diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index b42f7780be..fd4ff24855 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -36,8 +36,8 @@ #include "wx/dynarray.h" #include "wx/log.h" #include "wx/artprov.h" +#include "wx/math.h" -#include #include FORCE_LINK_ME(m_image) @@ -539,11 +539,9 @@ wxHtmlImageCell::~wxHtmlImageCell() void wxHtmlImageCell::Draw(wxDC& dc, int x, int y, - int WXUNUSED(view_y1), int view_y2, + int WXUNUSED(view_y1), int WXUNUSED(view_y2), wxHtmlRenderingInfo& WXUNUSED(info)) { - if (y+m_PosY+m_Height > view_y2) return; - if ( m_showFrame ) { dc.SetBrush(*wxTRANSPARENT_BRUSH); @@ -574,7 +572,7 @@ void wxHtmlImageCell::Draw(wxDC& dc, int x, int y, wxHtmlLinkInfo *wxHtmlImageCell::GetLink( int x, int y ) const { - if (m_mapName.IsEmpty()) + if (m_mapName.empty()) return wxHtmlCell::GetLink( x, y ); if (!m_imageMap) {