Commit 3c96e840 authored by mae's avatar mae
Browse files

Fix (un)collapse all

In combination with ifdef'ed out blocks (un)collapse all would
possibly never expand the blocks again.
parent bb8e8ef5
......@@ -133,9 +133,11 @@ public:
TextBlockUserData *data = static_cast<TextBlockUserData*>(block.userData());
if (!data || data->collapseMode() != CollapseAfter) {
data = static_cast<TextBlockUserData*>(block.next().userData());
if (!data || data->collapseMode() != TextBlockUserData::CollapseThis || data->m_ifdefedOut)
if (!data || data->collapseMode() != TextBlockUserData::CollapseThis)
data = 0;
}
if (data && data->m_ifdefedOut)
data = 0;
return data;
}
......
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