diff --git a/src/core/operationstack.cpp b/src/core/operationstack.cpp index 258f62d..18ff942 100644 --- a/src/core/operationstack.cpp +++ b/src/core/operationstack.cpp @@ -460,6 +460,10 @@ bool OperationStack::contains(const Partition* p) const foreach(Operation * o, operations()) { if (o->targets(*p)) return true; + CopyOperation* copyOp = dynamic_cast(o); + const Partition* source = ©Op->sourcePartition(); + if (source == p) + return true; } return false;