forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user