diff --git a/Userland/Libraries/LibGfx/AffineTransform.cpp b/Userland/Libraries/LibGfx/AffineTransform.cpp index b32258977e..97787b0f5d 100644 --- a/Userland/Libraries/LibGfx/AffineTransform.cpp +++ b/Userland/Libraries/LibGfx/AffineTransform.cpp @@ -108,6 +108,8 @@ AffineTransform& AffineTransform::set_translation(FloatPoint t) AffineTransform& AffineTransform::multiply(AffineTransform const& other) { + if (other.is_identity()) + return *this; AffineTransform result; result.m_values[0] = other.a() * a() + other.b() * c(); result.m_values[1] = other.a() * b() + other.b() * d();