summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-02 12:54:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-02 21:21:48 +0100
commit91dcc2de555d14a7d2c996ee4641aa4acd77bec8 (patch)
tree3fc8164dc7b4eefa3aa66b481a59e2a3de50d32f /sw/source
parentb03fe77699b1ad30a9441bd9b283f25579ac261e (diff)
ofz#3927 ensure same sort order cross platforms
annoyingly was getting different order on oss-fuzz vs normal case making things hard to reproduce Change-Id: Ie50a546946b2dfa89bc3af1b4a04a88217c1a668 Reviewed-on: https://gerrit.libreoffice.org/44212 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 3134c3bc2ed1..623100c4f61a 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2701,7 +2701,7 @@ WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(const WW8Fib& rFib, SvStream* pSt,
maEntries.emplace_back(Get_Long(pStart));
//we expect them sorted, but it appears possible for them to arrive unsorted
- std::sort(maEntries.begin(), maEntries.end());
+ std::stable_sort(maEntries.begin(), maEntries.end());
mnIdx = 0;