forked from qt-creator/qt-creator
DiffEditor: Fix line number forcing
Change-Id: I876c8ca6bc442cec853c41c48eb2be83def4558c Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -160,6 +160,7 @@ QString DiffEditorDocument::description() const
|
|||||||
|
|
||||||
void DiffEditorDocument::setContextLineCount(int lines)
|
void DiffEditorDocument::setContextLineCount(int lines)
|
||||||
{
|
{
|
||||||
|
QTC_ASSERT(!m_isContextLineCountForced, return);
|
||||||
m_contextLineCount = lines;
|
m_contextLineCount = lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,8 +182,6 @@ bool DiffEditorDocument::isContextLineCountForced() const
|
|||||||
|
|
||||||
void DiffEditorDocument::setIgnoreWhitespace(bool ignore)
|
void DiffEditorDocument::setIgnoreWhitespace(bool ignore)
|
||||||
{
|
{
|
||||||
if (m_isContextLineCountForced)
|
|
||||||
return;
|
|
||||||
m_ignoreWhitespace = ignore;
|
m_ignoreWhitespace = ignore;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user