1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:37:44 +00:00

LibGfx: Correct Line::to_string() output

This looks like a copy-paste issue from Rect::to_string().
This commit is contained in:
Sam Atkins 2022-10-26 20:26:59 +01:00 committed by Andreas Kling
parent 07bceb861a
commit 6a4dde1d99

View file

@ -144,13 +144,13 @@ private:
template<> template<>
inline String IntLine::to_string() const inline String IntLine::to_string() const
{ {
return String::formatted("[{},{} -> {}x{}]", m_a.x(), m_a.y(), m_b.x(), m_b.y()); return String::formatted("[{},{} -> {},{}]", m_a.x(), m_a.y(), m_b.x(), m_b.y());
} }
template<> template<>
inline String FloatLine::to_string() const inline String FloatLine::to_string() const
{ {
return String::formatted("[{},{} {}x{}]", m_a.x(), m_a.y(), m_b.x(), m_b.y()); return String::formatted("[{},{} -> {},{}]", m_a.x(), m_a.y(), m_b.x(), m_b.y());
} }
} }