LibGfx: Add a function that adds two paths together

This will be used by Path2D#addPath in LibWeb.
This commit is contained in:
Luke Wilde 2023-02-27 18:22:03 +00:00 committed by Andreas Kling
commit 1f97adbee8
Notes: sideshowbarker 2024-07-16 23:40:16 +09:00
2 changed files with 7 additions and 0 deletions

View file

@ -376,4 +376,10 @@ Path Path::copy_transformed(Gfx::AffineTransform const& transform) const
return result;
}
void Path::add_path(Path const& other)
{
m_segments.extend(other.m_segments);
invalidate_split_lines();
}
}