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:
@@ -168,8 +168,8 @@ int wxHtmlDCRenderer::Render(int x, int y,
|
||||
rinfo);
|
||||
}
|
||||
|
||||
if (pbreak < m_Cells->GetHeight()) return pbreak;
|
||||
else return GetTotalHeight();
|
||||
const int totalHeight = GetTotalHeight();
|
||||
return pbreak < totalHeight ? pbreak : totalHeight;
|
||||
}
|
||||
|
||||
int wxHtmlDCRenderer::GetTotalWidth() const
|
||||
|
Reference in New Issue
Block a user