mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
PixelPaint: Call update after clearing guides
This commit is contained in:
parent
a1d1f7566f
commit
c88058cea2
2 changed files with 7 additions and 1 deletions
|
@ -512,6 +512,12 @@ void ImageEditor::set_pixel_grid_visibility(bool show_pixel_grid)
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ImageEditor::clear_guides()
|
||||||
|
{
|
||||||
|
m_guides.clear();
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
void ImageEditor::layers_did_change()
|
void ImageEditor::layers_did_change()
|
||||||
{
|
{
|
||||||
if (on_modified_change)
|
if (on_modified_change)
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
{
|
{
|
||||||
m_guides.remove_first_matching([&](auto& entry) { return &guide == entry.ptr(); });
|
m_guides.remove_first_matching([&](auto& entry) { return &guide == entry.ptr(); });
|
||||||
}
|
}
|
||||||
void clear_guides() { m_guides.clear(); }
|
void clear_guides();
|
||||||
|
|
||||||
void layers_did_change();
|
void layers_did_change();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue