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:
parent
92a19a9ea2
commit
a6638f8a6d
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue