sw/source/filter/ww8/ww8scan.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 91dcc2de555d14a7d2c996ee4641aa4acd77bec8
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Nov 2 12:54:58 2017 +0000

    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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

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;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to