Slightly simplify wxHtmlDCRenderer::Render()

Use "totalHeight" variable to make it more clear that
m_Cells->GetHeight() and GetTotalHeight() are the same value.
This commit is contained in:
Vadim Zeitlin
2018-05-23 19:43:23 +02:00
parent b0ae6681be
commit 0ada873c45

View File

@@ -168,8 +168,8 @@ int wxHtmlDCRenderer::Render(int x, int y,
rinfo); rinfo);
} }
if (pbreak < m_Cells->GetHeight()) return pbreak; const int totalHeight = GetTotalHeight();
else return GetTotalHeight(); return pbreak < totalHeight ? pbreak : totalHeight;
} }
int wxHtmlDCRenderer::GetTotalWidth() const int wxHtmlDCRenderer::GetTotalWidth() const