PixelPaint: Fix typo in variable name
This commit is contained in:
parent
a30b956e94
commit
6b3688147f
Notes:
sideshowbarker
2024-07-17 02:04:39 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/6b3688147f Pull-request: https://github.com/SerenityOS/serenity/pull/16596 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/martinfalisse
2 changed files with 4 additions and 4 deletions
|
@ -89,7 +89,7 @@ void MoveTool::on_mousemove(Layer* layer, MouseEvent& event)
|
|||
break;
|
||||
}
|
||||
scaling_origin.translate_by(delta);
|
||||
if (m_keep_ascept_ratio) {
|
||||
if (m_keep_aspect_ratio) {
|
||||
auto aspect_ratio = m_layer_being_moved->size().aspect_ratio();
|
||||
scaling_origin = opposite_corner.end_point_for_aspect_ratio(scaling_origin, aspect_ratio);
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ void MoveTool::on_mouseup(Layer* layer, MouseEvent& event)
|
|||
bool MoveTool::on_keydown(GUI::KeyEvent& event)
|
||||
{
|
||||
if (event.key() == Key_Shift)
|
||||
m_keep_ascept_ratio = true;
|
||||
m_keep_aspect_ratio = true;
|
||||
|
||||
if (m_scaling)
|
||||
return true;
|
||||
|
@ -172,7 +172,7 @@ bool MoveTool::on_keydown(GUI::KeyEvent& event)
|
|||
void MoveTool::on_keyup(GUI::KeyEvent& event)
|
||||
{
|
||||
if (event.key() == Key_Shift)
|
||||
m_keep_ascept_ratio = false;
|
||||
m_keep_aspect_ratio = false;
|
||||
}
|
||||
|
||||
void MoveTool::on_second_paint(Layer const* layer, GUI::PaintEvent& event)
|
||||
|
|
|
@ -42,7 +42,7 @@ private:
|
|||
Gfx::IntRect m_new_layer_rect;
|
||||
bool m_scaling { false };
|
||||
Optional<ResizeAnchorLocation const> m_resize_anchor_location {};
|
||||
bool m_keep_ascept_ratio { false };
|
||||
bool m_keep_aspect_ratio { false };
|
||||
|
||||
RefPtr<Gfx::Bitmap> m_cached_preview_bitmap { nullptr };
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue