1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Path: Allow addPath to take a reference to self

This commit is contained in:
reuk 2023-02-13 13:40:04 +00:00
parent 92a19a9ea2
commit a6638f8a6d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -768,10 +768,11 @@ void Path::addPath (const Path& other,
const AffineTransform& transformToApply)
{
const auto* d = other.data.begin();
const auto size = other.data.size();
for (int i = 0; i < other.data.size();)
for (int i = 0; i < size;)
{
auto type = d[i++];
const auto type = d[i++];
if (isMarker (type, closeSubPathMarker))
{