diff --git a/Userland/Applications/PixelPaint/Tools/MoveTool.cpp b/Userland/Applications/PixelPaint/Tools/MoveTool.cpp index c01ebdc0af5..8bc05c14ca1 100644 --- a/Userland/Applications/PixelPaint/Tools/MoveTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/MoveTool.cpp @@ -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) diff --git a/Userland/Applications/PixelPaint/Tools/MoveTool.h b/Userland/Applications/PixelPaint/Tools/MoveTool.h index 9c1c80946d9..6c668a281b9 100644 --- a/Userland/Applications/PixelPaint/Tools/MoveTool.h +++ b/Userland/Applications/PixelPaint/Tools/MoveTool.h @@ -42,7 +42,7 @@ private: Gfx::IntRect m_new_layer_rect; bool m_scaling { false }; Optional m_resize_anchor_location {}; - bool m_keep_ascept_ratio { false }; + bool m_keep_aspect_ratio { false }; RefPtr m_cached_preview_bitmap { nullptr }; };