GH-1802 fix log resize handling

The log could end up with many empty lines because the wrong maximum size was
used during the resize.
This commit is contained in:
Petr Mrázek 2017-02-08 01:59:16 +01:00
parent 2e8d8b60b0
commit 155de307bc

View File

@ -98,7 +98,7 @@ void LogModel::setMaxLines(int maxLines)
return;
}
// if it all still fits in the buffer, just resize it
if(m_firstLine + m_numLines < maxLines)
if(m_firstLine + m_numLines < m_maxLines)
{
m_maxLines = maxLines;
m_content.resize(maxLines);