1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

PixelPaint: Call update after clearing guides

This commit is contained in:
Mart G 2022-10-12 15:18:32 +02:00 committed by Sam Atkins
parent a1d1f7566f
commit c88058cea2
2 changed files with 7 additions and 1 deletions

View file

@ -512,6 +512,12 @@ void ImageEditor::set_pixel_grid_visibility(bool show_pixel_grid)
update();
}
void ImageEditor::clear_guides()
{
m_guides.clear();
update();
}
void ImageEditor::layers_did_change()
{
if (on_modified_change)

View file

@ -60,7 +60,7 @@ public:
{
m_guides.remove_first_matching([&](auto& entry) { return &guide == entry.ptr(); });
}
void clear_guides() { m_guides.clear(); }
void clear_guides();
void layers_did_change();