]> source.dussan.org Git - poi.git/commitdiff
fix: sort bookmarks start indices
authorSergey Vladimirov <sergey@apache.org>
Mon, 25 Jul 2011 10:40:47 +0000 (10:40 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 25 Jul 2011 10:40:47 +0000 (10:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150624 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/usermodel/BookmarksImpl.java

index 9bc5e77f3b6df19838d86acb13d4cda0e07a7d4e..8a1c88af4cf0bc89b6e58f0ffd27fa9dbc18d2e9 100644 (file)
@@ -144,6 +144,7 @@ public class BookmarksImpl implements Bookmarks
             Collections.sort( updated, PropertyNode.EndComparator.instance );
             entry.setValue( updated );
         }
+        Arrays.sort( indices );
 
         this.sortedDescriptors = result;
         this.sortedStartPositions = indices;