Code folding fix

Remove harmful over optimization (made it impossible to restore
nested folding states)
This commit is contained in:
mae
2010-05-20 16:39:54 +02:00
parent 7003b82e2b
commit 697cb0daa8

View File

@@ -493,8 +493,6 @@ void BaseTextDocumentLayout::doFoldOrUnfold(const QTextBlock& block, bool unfold
if (!canFold(block))
return;
QTextBlock b = block.next();
if (b.isVisible() == unfold)
return;
int indent = foldingIndent(block);
while (b.isValid() && foldingIndent(b) > indent && b.next().isValid()) {