https://bz.apache.org/bugzilla/show_bug.cgi?id=60042

--- Comment #1 from Javen O'Neal <[email protected]> ---
Should searching for file name (slide2.xml) be case insensitive?
https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XMLSlideShow.java?revision=1753073&view=markup#l210

Also, slideNumber may not be computed correctly if the slides are out of order.

> for (CTSlideIdListEntry slideId : slideList.getSldIdArray()){
>     slideNumber = (int)Math.max(slideId.getId() + 1, slideNumber);
>     cnt++;
> }

It would be better to store slide numbers in a set and find the largest or
smallest slide number and find the next unused number.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to