Commit 0be0f828 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix crash when activating Passthrough mode for a group with transparency mask

Masks' extent should not be included into the extent of a passthrough
layer, because they are explicitly disabled in this mode.

Fixes T567
parent 8a3bc866
......@@ -359,7 +359,9 @@ QRect collectRects(const KisNode *node, MetricPolicy policy)
const KisNode *child = node->firstChild();
while (child) {
accumulator |= policy(child);
if (!qobject_cast<const KisMask*>(child)) {
accumulator |= policy(child);
child = child->nextSibling();
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