mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
PixelPaint: Inherit from AbstractZoomPanWidget
This commit is contained in:
committed by
Andreas Kling
parent
b21d128075
commit
7974fee800
Notes:
sideshowbarker
2024-07-17 20:55:32 +09:00
Author: https://github.com/mustafaquraish Commit: https://github.com/SerenityOS/serenity/commit/7974fee8007 Pull-request: https://github.com/SerenityOS/serenity/pull/11719 Reviewed-by: https://github.com/TobyAsE ✅ Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/sppmacd
@@ -134,7 +134,7 @@ void RectangleSelectTool::on_second_paint(Layer const*, GUI::PaintEvent& event)
|
||||
painter.add_clip_rect(event.rect());
|
||||
|
||||
auto rect_in_image = Gfx::IntRect::from_two_points(m_selection_start, m_selection_end);
|
||||
auto rect_in_editor = m_editor->image_rect_to_editor_rect(rect_in_image);
|
||||
auto rect_in_editor = m_editor->content_to_frame_rect(rect_in_image);
|
||||
|
||||
m_editor->selection().draw_marching_ants(painter, rect_in_editor.to_type<int>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user