PixelPaint: Fix typo in variable name

This commit is contained in:
Tim Ledbetter 2022-12-21 07:01:16 +00:00 committed by Sam Atkins
parent a30b956e94
commit 6b3688147f
Notes: sideshowbarker 2024-07-17 02:04:39 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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 };
};