mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Path: Allow addPath to take a reference to self
This commit is contained in:
parent
8d87c8c6c3
commit
cb14aa983d
1 changed files with 3 additions and 2 deletions
|
|
@ -726,10 +726,11 @@ void Path::addBubble (Rectangle<float> bodyArea,
|
||||||
void Path::addPath (const Path& other)
|
void Path::addPath (const Path& other)
|
||||||
{
|
{
|
||||||
const auto* d = other.data.begin();
|
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, moveMarker))
|
if (isMarker (type, moveMarker))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue