X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fa794151356cb766c72fd691ab470be1ecefc544..17ca6e3b7d912a05de932a9dfbc20fd3ac666e5c:/src/html/m_image.cpp diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index b8ffb83c8d..423ecf7bf5 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -24,6 +24,7 @@ #include "wx/log.h" #include "wx/math.h" #include "wx/image.h" + #include "wx/wxcrtvararg.h" #endif #include "wx/html/forcelnk.h" @@ -533,11 +534,11 @@ void wxHtmlImageCell::Layout(int w) if (!m_bmpHpresent && m_bitmap != NULL) m_Height = m_bitmap->GetHeight()*m_Width/m_bitmap->GetWidth(); else - m_Height = m_scale*m_bmpH; + m_Height = static_cast(m_scale*m_bmpH); } else { - m_Width = m_scale*m_bmpW; - m_Height = m_scale*m_bmpH; + m_Width = static_cast(m_scale*m_bmpW); + m_Height = static_cast(m_scale*m_bmpH); } switch (m_align)