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

@@ -286,7 +286,6 @@ public:
// few pixels up.
//
// Returned value : true if pagebreak was modified, false otherwise
// Usage : while (container->AdjustPagebreak(&p)) {}
virtual bool AdjustPagebreak(int *pagebreak,
const wxArrayInt& known_pagebreaks,
int pageHeight) const;