From: Václav Slavík Date: Tue, 15 Feb 2000 22:07:51 +0000 (+0000) Subject: fixed typo bug in my last commit that caused image size (-1,-1) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/418d9d6275b6596062e3bc324ceb06ea7c0388fe fixed typo bug in my last commit that caused image size (-1,-1) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);