From 155de307bc6ef1a42226831550680110e00dc8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 8 Feb 2017 01:59:16 +0100 Subject: 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. --- api/logic/launch/LogModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logic/launch/LogModel.cpp b/api/logic/launch/LogModel.cpp index 869c00f9..579aa654 100644 --- a/api/logic/launch/LogModel.cpp +++ b/api/logic/launch/LogModel.cpp @@ -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); -- cgit v1.2.3