Make wxHtmlDCRenderer::FindNextPageBreak() const

It doesn't modify the renderer.
This commit is contained in:
Vadim Zeitlin
2018-05-25 01:31:54 +02:00
parent c5bb583cdf
commit 8d7601295b
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ public:
// Finds the next page break after the specified (vertical) position. // Finds the next page break after the specified (vertical) position.
// Returns wxNOT_FOUND if passed in position is the last page break. // Returns wxNOT_FOUND if passed in position is the last page break.
int FindNextPageBreak(int pos); int FindNextPageBreak(int pos) const;
// [x,y] is position of upper-left corner of printing rectangle (see SetSize) // [x,y] is position of upper-left corner of printing rectangle (see SetSize)
// from is y-coordinate of the very first visible cell // from is y-coordinate of the very first visible cell

View File

@@ -140,7 +140,7 @@ void wxHtmlDCRenderer::SetStandardFonts(int size,
// else: SetHtmlText() not yet called, no need for relayout // else: SetHtmlText() not yet called, no need for relayout
} }
int wxHtmlDCRenderer::FindNextPageBreak(int pos) int wxHtmlDCRenderer::FindNextPageBreak(int pos) const
{ {
// Stop looking for page breaks if the previous one was already at the end // Stop looking for page breaks if the previous one was already at the end
// of the last page. // of the last page.