mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:07:35 +00:00
PaintBrush: Update the LayerModel when moving layers around
This ensures that the layer table view always shows the correct coordinates for the layer.
This commit is contained in:
parent
40ffa8c626
commit
fbeaf76f96
4 changed files with 11 additions and 1 deletions
|
@ -120,4 +120,10 @@ void ImageEditor::set_active_tool(Tool* tool)
|
|||
m_active_tool->setup(*this);
|
||||
}
|
||||
|
||||
void ImageEditor::layers_did_change()
|
||||
{
|
||||
static_cast<LayerModel&>(m_image->layer_model()).update_without_invalidating_indexes();
|
||||
update();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue