Make wxHtmlDCRenderer::FindNextPageBreak() const
It doesn't modify the renderer.
This commit is contained in:
@@ -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
|
||||||
|
@@ -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.
|
||||||
|
Reference in New Issue
Block a user