X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf7d7ee7062f7f6028df40e43745235658e38b4d..b09bda689c8525886d217a9b171b354391cd6d78:/src/html/m_image.cpp?ds=inline diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index 1492201871..494accba1f 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -337,7 +337,7 @@ wxHtmlImageCell::wxHtmlImageCell(wxFSFile *input, int w, int h, double scale, in -void wxHtmlImageCell::Draw(wxDC& dc, int x, int y, int view_y1, int view_y2) +void wxHtmlImageCell::Draw(wxDC& dc, int x, int y, int WXUNUSED(view_y1), int WXUNUSED(view_y2)) { if (m_Image) { @@ -429,6 +429,7 @@ TAG_HANDLER_BEGIN(IMG, "IMG,MAP,AREA") { cel = new wxHtmlImageCell(str, w, h, m_WParser->GetPixelScale(), al, mn); cel->SetLink(m_WParser->GetLink()); + cel->SetId(tag.GetParam(wxT("id"))); // may be empty m_WParser->GetContainer()->InsertCell(cel); delete str; }