diff --git a/include/wx/html/htmprint.h b/include/wx/html/htmprint.h
index 71ef634f88..5e4584aec1 100644
--- a/include/wx/html/htmprint.h
+++ b/include/wx/html/htmprint.h
@@ -78,7 +78,7 @@ public:
// set the same pagebreak twice.
//
// CAUTION! Render() changes DC's user scale and does NOT restore it!
- int Render(int x, int y, wxArrayInt& known_pagebreaks, int from = 0,
+ int Render(int x, int y, const wxArrayInt& known_pagebreaks, int from = 0,
int dont_render = false, int to = INT_MAX);
// returns total width of the html document
diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp
index 1403019851..c2195cc266 100644
--- a/src/html/htmprint.cpp
+++ b/src/html/htmprint.cpp
@@ -141,7 +141,7 @@ void wxHtmlDCRenderer::SetStandardFonts(int size,
}
int wxHtmlDCRenderer::Render(int x, int y,
- wxArrayInt& known_pagebreaks,
+ const wxArrayInt& known_pagebreaks,
int from, int dont_render, int to)
{
wxCHECK_MSG( m_Cells, 0, "SetHtmlText() must be called before Render()" );