Compilation fix for !wxUSE_PRINTING_ARCHITECTURE

This commit is contained in:
Václav Slavík
2016-03-29 18:54:10 +02:00
parent 95e63ed062
commit c57bde7092

View File

@@ -600,7 +600,11 @@ void wxHtmlImageCell::Draw(wxDC& dc, int x, int y,
// Optimisation for Windows: WIN32 scaling for window DCs is very poor, // Optimisation for Windows: WIN32 scaling for window DCs is very poor,
// so unless we're using a printer DC, do the scaling ourselves. // so unless we're using a printer DC, do the scaling ourselves.
#if defined(__WXMSW__) && wxUSE_IMAGE #if defined(__WXMSW__) && wxUSE_IMAGE
if (m_Width >= 0 && m_Width != m_bitmap->GetWidth() && !dc.IsKindOf(CLASSINFO(wxPrinterDC))) if (m_Width >= 0 && m_Width != m_bitmap->GetWidth()
#if wxUSE_PRINTING_ARCHITECTURE
&& !dc.IsKindOf(CLASSINFO(wxPrinterDC))
#endif
)
{ {
wxImage image(m_bitmap->ConvertToImage()); wxImage image(m_bitmap->ConvertToImage());
if (image.HasMask()) if (image.HasMask())