X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37a1f3f69b13506f10c99e1b6e7ee38f263257ea..6ba636000f13b4bf7d3e7dcfad429713085f6700:/src/html/m_image.cpp diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index 0f4027fb66..09396542cb 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -14,7 +14,7 @@ #include "wx/wxprec.h" #include "wx/defs.h" -#if wxUSE_HTML +#if wxUSE_HTML && wxUSE_STREAMS #ifdef __BORDLANDC__ #pragma hdrstop @@ -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);