From b2477632591be0303b09e4220bb1107e1962bd39 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 25 Jul 2011 10:40:47 +0000 Subject: [PATCH] fix: sort bookmarks start indices git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1150624 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/usermodel/BookmarksImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BookmarksImpl.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BookmarksImpl.java index 9bc5e77f3..8a1c88af4 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BookmarksImpl.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/BookmarksImpl.java @@ -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;