summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-10-26 20:26:59 +0100
committerAndreas Kling <kling@serenityos.org>2022-10-27 13:05:16 +0200
commit6a4dde1d995b78c368bba71d12ab2262c7c85679 (patch)
treeb3ec94b55d4927aede6eb56a7eab045bd0523a45
parent07bceb861a5453a44d2868a505ef9c9f27c9dbfa (diff)
downloadserenity-6a4dde1d995b78c368bba71d12ab2262c7c85679.zip
LibGfx: Correct Line::to_string() output
This looks like a copy-paste issue from Rect::to_string().
-rw-r--r--Userland/Libraries/LibGfx/Line.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Line.h b/Userland/Libraries/LibGfx/Line.h
index 4cfff5124e..a4b07f23f5 100644
--- a/Userland/Libraries/LibGfx/Line.h
+++ b/Userland/Libraries/LibGfx/Line.h
@@ -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());
}
}