Commit 94b0f0c7 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix invalid memory access in TestShapePainting

That one was caught by AddressSanitizer on Jenkins
parent 250d243d
......@@ -306,6 +306,7 @@ void TestShapePainting::testGroupUngroup()
new KoShapeUngroupCommand(group, group->shapes(), QList<KoShape*>(), &ungroupingCommand);
canvas.shapeController()->removeShape(group, &ungroupingCommand);
// NOTE: group will be deleted in ungroupingCommand's d-tor
ungroupingCommand.redo();
......@@ -315,8 +316,6 @@ void TestShapePainting::testGroupUngroup()
QCOMPARE(shape2->paintedCount, 2 * i + 2);
QCOMPARE(manager->shapes().size(), 2);
}
group->setParent(0);
}
}
......
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