- listframe: fix calculation of m_nLinesPerPage (part 2)

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-02-16 23:49:03 +01:00
committed by Thilo Graf
parent f0b9588b82
commit 365f4951a1

View File

@@ -311,7 +311,7 @@ void CListFrame::onNewLineArray(void)
{
reSizeMainFrameHeight(m_nNrOfLines * m_nFontListHeight);
}
m_nLinesPerPage = (m_cFrameListRel.iHeight - (2*OFFSET_INNER_MID)) / m_nFontListHeight;
m_nLinesPerPage = m_cFrameListRel.iHeight / m_nFontListHeight;
if(m_nLinesPerPage <= 0)
m_nLinesPerPage = 1;