Don't call AdjustPagebreak() in a loop, this seems useless

There doesn't seem to be any reason to call this function more than once
on the same cell as the existing implementations are idempotent and it's
difficult to see why this should ever not be the case.
This commit is contained in:
Vadim Zeitlin
2018-05-24 15:47:08 +02:00
parent e01892c669
commit 63add2cd19
3 changed files with 3 additions and 10 deletions

View File

@@ -198,19 +198,13 @@ public:
Returns @true if pagebreak was modified, @false otherwise.
@param pagebreak
position in pixel of the pagebreak.
position in pixels of the pagebreak.
@param known_pagebreaks
the list of the previous pagebreaks
@param pageHeight
the height in pixel of the page drawable area
Usage:
@code
while (container->AdjustPagebreak(&p, kp, ph)) {}
@endcode
the height in pixels of the page drawable area
*/
virtual bool AdjustPagebreak(int* pagebreak,
const wxArrayInt& known_pagebreaks,