X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..929bb9d2b3ce9d523d211ea776344e1816c720db:/src/html/m_layout.cpp diff --git a/src/html/m_layout.cpp b/src/html/m_layout.cpp index 02d38228cd..cbbb4f9989 100644 --- a/src/html/m_layout.cpp +++ b/src/html/m_layout.cpp @@ -71,7 +71,8 @@ public: wxHtmlPageBreakCell() {} bool AdjustPagebreak(int* pagebreak, - wxArrayInt& known_pagebreaks) const; + const wxArrayInt& known_pagebreaks, + int pageHeight) const; void Draw(wxDC& WXUNUSED(dc), int WXUNUSED(x), int WXUNUSED(y), @@ -82,7 +83,10 @@ private: wxDECLARE_NO_COPY_CLASS(wxHtmlPageBreakCell); }; -bool wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, wxArrayInt& known_pagebreaks) const +bool +wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, + const wxArrayInt& known_pagebreaks, + int WXUNUSED(pageHeight)) const { // When we are counting pages, 'known_pagebreaks' is non-NULL. // That's the only time we change 'pagebreak'. Otherwise, pages @@ -285,7 +289,7 @@ TAG_HANDLER_BEGIN(TITLE, "TITLE") if (winIface) { wxString title(tag.GetBeginIter(), tag.GetEndIter1()); -#if !wxUSE_UNICODE && wxUSE_WCHAR_T +#if !wxUSE_UNICODE const wxFontEncoding enc = m_WParser->GetInputEncoding(); if ( enc != wxFONTENCODING_DEFAULT ) { @@ -340,7 +344,7 @@ TAG_HANDLER_BEGIN(BODY, "BODY") if ( is ) { wxImage image(*is); - if ( image.Ok() ) + if ( image.IsOk() ) winIface->SetHTMLBackgroundImage(image); }