andreccls / java-psd-library

Automatically exported from code.google.com/p/java-psd-library
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Library doesn't allow nesting of more than 5 groups #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

I am using this library to write my thesis that makes PSD files to HTML 
automatically. I found it very helpful and it it very well written. There is 
one problem I can't seem to fix myself:

Photoshop before CS5 allowed nesting of 5 groups, but CS5 and higher allows 10 
groups nesting. But whenever I nest 6 groups in each other I get this exception:

java.util.NoSuchElementException
    at java.util.LinkedList.remove(LinkedList.java:788)
    at java.util.LinkedList.removeFirst(LinkedList.java:134)
    at psd.model.Psd.makeLayersHierarchy(Psd.java:93)
    at psd.model.Psd.<init>(Psd.java:70)

Do you have any idea what I need to change to get deeper nesting working?

Original issue reported on code.google.com by alex.n...@gmail.com on 29 Apr 2012 at 1:28