Browse Source

Path: Allow addPath to take a reference to self

v7.0.9
reuk 3 years ago
parent
commit
a6638f8a6d
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_graphics/geometry/juce_Path.cpp

+ 3
- 2
modules/juce_graphics/geometry/juce_Path.cpp 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))
{


Loading…
Cancel
Save