void wxHtmlImageCell::Draw(wxDC& dc, int x, int y, int view_y1, int view_y2)
{
if (m_Image)
+// dc.DrawBitmap(*m_Image, x + m_PosX, y + m_PosY, (m_Image->GetMask() != (wxMask*) 0));
dc.DrawBitmap(*m_Image, x + m_PosX, y + m_PosY, TRUE);
wxHtmlCell::Draw(dc, x, y, view_y1, view_y2);
}
}
wxHtmlImageCell *cel = NULL;
if (str) {
- cel = new wxHtmlImageCell(str,
- (int)(m_WParser -> GetPixelScale() * (double)w),
- (int)(m_WParser -> GetPixelScale() * (double)h),
- al, mn);
+ int neww = (w == -1) ? -1 : (int)(m_WParser -> GetPixelScale() * (double)w),
+ newh = (h == -1) ? -1 : (int)(m_WParser -> GetPixelScale() * (double)h);
+
+ cel = new wxHtmlImageCell(str, neww, newh, al, mn);
cel -> SetLink(m_WParser -> GetLink());
m_WParser -> GetContainer() -> InsertCell(cel);
delete str;