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:
parent
2e8d8b60b0
commit
155de307bc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user