From 418d9d6275b6596062e3bc324ceb06ea7c0388fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 15 Feb 2000 22:07:51 +0000 Subject: [PATCH] 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 --- src/html/m_image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2