1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +00:00

PixelPaint: Allow pasting a copied bitmap as a new layer :^)

This commit is contained in:
Andreas Kling 2020-09-05 16:53:51 +02:00
parent 00bdb74c84
commit 6aa7f59608
4 changed files with 35 additions and 2 deletions

View file

@ -71,6 +71,8 @@ void Image::add_layer(NonnullRefPtr<Layer> layer)
for (auto* client : m_clients)
client->image_did_add_layer(m_layers.size() - 1);
did_modify_layer_stack();
}
size_t Image::index_of(const Layer& layer) const