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

objectgroup linked list is reversed #81

Open
brccabral opened this issue Jul 22, 2024 · 1 comment
Open

objectgroup linked list is reversed #81

brccabral opened this issue Jul 22, 2024 · 1 comment
Labels

Comments

@brccabral
Copy link

Hi,
I have the following group

<objectgroup id="7" name="Objects">
  <object id="2" gid="147" x="432" y="948" width="56" height="112"/>
  <object id="29" gid="149" x="242" y="886" width="56" height="116"/>
  <object id="95" gid="144" x="962" y="442" width="56" height="68"/>
</objectgroup>

My layer->content.objgr->head starts in id 95, then 29 and then 2.

Should it start in 2, then 29 and then 95?

@baylej
Copy link
Owner

baylej commented Jul 22, 2024

Hello,
Linked lists are created using insert at head, that's why they are in reversed order.

@baylej baylej added the wontfix label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants