Fix #12934 Delete images inside a frame

- Select images by adding a special case to the z-order.
This commit is contained in:
softcat477 2022-08-30 14:27:39 -04:00
parent 1813d3f2c9
commit 8dddfddc69

View file

@ -687,6 +687,12 @@ bool NotationInteraction::elementIsLess(const EngravingItem* e1, const Engraving
if (e1->isBox() && e2->isText()) {
return true;
}
if (e1->isImage() && e2->isBox()) {
return false;
}
if (e1->isBox() && e2->isImage()) {
return true;
}
if (e1->z() == e2->z()) {
// same stacking order, prefer non-hidden elements
if (e1->type() == e2->type()) {