Commit b1a71f7b authored by Tobias Hunger's avatar Tobias Hunger

DiffEditor: Fix line number forcing

Change-Id: I876c8ca6bc442cec853c41c48eb2be83def4558c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent cce834ae
......@@ -160,6 +160,7 @@ QString DiffEditorDocument::description() const
void DiffEditorDocument::setContextLineCount(int lines)
{
QTC_ASSERT(!m_isContextLineCountForced, return);
m_contextLineCount = lines;
}
......@@ -181,8 +182,6 @@ bool DiffEditorDocument::isContextLineCountForced() const
void DiffEditorDocument::setIgnoreWhitespace(bool ignore)
{
if (m_isContextLineCountForced)
return;
m_ignoreWhitespace = ignore;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment