Save reallocating a bitmap object

This commit is contained in:
JulianSmart
2015-11-30 15:30:34 +00:00
parent 6cd37dd3c8
commit 1d9903456c

View File

@@ -608,8 +608,7 @@ void wxHtmlImageCell::Draw(wxDC& dc, int x, int y,
image.InitAlpha();
}
image.Rescale(m_Width, m_Height, wxIMAGE_QUALITY_HIGH);
delete m_bitmap;
m_bitmap = new wxBitmap(image);
(*m_bitmap) = wxBitmap(image);
}
#endif