Editor: Allow negative folding indent.

Fixing folding issues in the c++ editor if too many closing folding
regions were found.

Change-Id: I5c3476a6922af07be9b49d396b684a5f3b5a5e33
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
David Schulz
2015-05-20 08:38:52 +02:00
parent 4763acbd95
commit a6e1c3cb54
2 changed files with 9 additions and 9 deletions

View File

@@ -498,7 +498,7 @@ void TextDocumentLayout::setFoldingIndent(const QTextBlock &block, int indent)
if (TextBlockUserData *userData = testUserData(block))
userData->setFoldingIndent(0);
} else {
userData(block)->setFoldingIndent(qMax(0,indent));
userData(block)->setFoldingIndent(indent);
}
}