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
Notes: sideshowbarker 2024-07-17 07:20:49 +09:00

View File

@ -144,13 +144,13 @@ private:
template<>
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<>
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());
}
}