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:
@@ -152,7 +152,7 @@ int wxHtmlDCRenderer::FindNextPageBreak(const wxArrayInt& known_pagebreaks,
|
||||
return wxNOT_FOUND;
|
||||
|
||||
pos += m_Height;
|
||||
while (m_Cells->AdjustPagebreak(&pos, known_pagebreaks, m_Height)) {}
|
||||
m_Cells->AdjustPagebreak(&pos, known_pagebreaks, m_Height);
|
||||
return pos;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user