X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37a1f3f69b13506f10c99e1b6e7ee38f263257ea..79f585d90388128f9d245f7c92d3013b98b9ed14:/src/html/m_image.cpp?ds=sidebyside diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index 0f4027fb66..06a78d6b82 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -277,8 +277,8 @@ wxHtmlImageCell::wxHtmlImageCell(wxFSFile *input, int w, int h, double scale, in if (w != -1) m_Width = w; else m_Width = ww; if (h != -1) m_Height = h; else m_Height = hh; - m_Width = (int)(scale * (double)w); - m_Height = (int)(scale * (double)h); + m_Width = (int)(scale * (double)m_Width); + m_Height = (int)(scale * (double)m_Height); if ((m_Width != ww) || (m_Height != hh)) { wxImage img2 = img -> Scale(m_Width, m_Height);