listframe: fix calculation of m_nLinesPerPage (part 2)

Origin commit data
------------------
Commit: 33720d4818
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-02-16 (Sat, 16 Feb 2019)

Origin message was:
------------------
- listframe: fix calculation of m_nLinesPerPage (part 2)
This commit is contained in:
vanhofen
2019-02-16 23:49:03 +01:00
parent aefa280866
commit 6fba12569c

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;