Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Path.add_path() #92

Merged
merged 1 commit into from
Mar 19, 2021
Merged

Fix Path.add_path() #92

merged 1 commit into from
Mar 19, 2021

Conversation

jwiggins
Copy link
Member

It's been broken since it was introduced... Stupid copypasta 🍝

Comment on lines +171 to +172
cdef _vertex_source.PathSource* othr = <_vertex_source.PathSource*>other._this
pth.concat_path[_vertex_source.PathSource](dereference(othr))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

othr was pointing to self._this instead of other._this 😑

Comment on lines +92 to +94
void concat_path(VertexSource& vs)
{
m_path.concat_path(vs, path_id);
m_path.concat_path(vs);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way that agg::path_storage::concat_path is used by this code doesn't require the second argument, which sets the starting vertex index in the source which is being added to the receiver. It's always 0 because we want to copy the whole source from its start.

@jwiggins jwiggins merged commit 3a461fd into main Mar 19, 2021
@jwiggins jwiggins deleted the fix/add-path branch March 19, 2021 10:05
@jwiggins jwiggins mentioned this pull request Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant