Skip to content

Commit

Permalink
fix: image z order works again
Browse files Browse the repository at this point in the history
  • Loading branch information
Onetchou committed Jul 31, 2024
1 parent 211bb69 commit dd1c3fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/tools/images/image_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ void ImageItem::moveToBottom()
minZValue = qMin(minZValue, item->m_image.order);
item->m_image.order++;
item->updateImage();
emit item->imageNeedsSave();
}
}
m_image.order = minZValue;
Expand All @@ -664,6 +665,7 @@ void ImageItem::moveToTop()
{
item->m_image.order--;
item->updateImage();
emit item->imageNeedsSave();
}
}
m_image.order = maxImageZvalue;
Expand All @@ -683,6 +685,7 @@ void ImageItem::moveUp()
{
item->m_image.order--;
item->updateImage();
emit item->imageNeedsSave();
}
}
m_image.order ++;
Expand All @@ -703,6 +706,7 @@ void ImageItem::moveDown()
{
item->m_image.order++;
item->updateImage();
emit item->imageNeedsSave();
}
}
m_image.order --;
Expand Down

0 comments on commit dd1c3fb

Please sign in to comment.