mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:17:43 +00:00
PixelPaint: No need to pass ImageEditor& to Selection::paint()
It already has a reference to the editor in m_editor.
This commit is contained in:
parent
e6f27cec39
commit
fa7bb98b1e
3 changed files with 4 additions and 4 deletions
|
@ -98,7 +98,7 @@ void ImageEditor::paint_event(GUI::PaintEvent& event)
|
|||
}
|
||||
|
||||
if (!m_selection.is_empty())
|
||||
m_selection.paint(painter, *this);
|
||||
m_selection.paint(painter);
|
||||
}
|
||||
|
||||
Gfx::FloatRect ImageEditor::layer_rect_to_editor_rect(Layer const& layer, Gfx::IntRect const& layer_rect) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue