X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad4a907bb77c5ca10aa02ab8474caa8b92d78c0c..0826c4d39a53f8691b9430207420e9d9e175a73f:/src/html/m_image.cpp?ds=sidebyside diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp index fcccbd11a3..423ecf7bf5 100644 --- a/src/html/m_image.cpp +++ b/src/html/m_image.cpp @@ -534,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)