mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
PixelPaint: Add method to flatten image layers
This adds Image::flatten_all_layers() that allows the user to flatten all the visible layers into one.
This commit is contained in:
parent
76a18e1172
commit
9be08e33ea
4 changed files with 30 additions and 0 deletions
|
@ -217,6 +217,7 @@ void LayerListWidget::image_did_remove_layer(size_t layer_index)
|
|||
m_moving_gadget_index = {};
|
||||
}
|
||||
m_gadgets.remove(layer_index);
|
||||
m_selected_layer_index = 0;
|
||||
relayout_gadgets();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue