1
Fork 0
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:
Andreas Kling 2020-05-13 00:21:13 +02:00
parent 40ffa8c626
commit fbeaf76f96
4 changed files with 11 additions and 1 deletions

View file

@ -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();
}
}