sdext/source/pdfimport/tree/pdfiprocessor.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 72865662208e1c053c8a48b4751e234cf3a312da Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jan 19 10:41:08 2016 +0100 Ensure irreflexivity of std::stable_sort predicate GCC 6 libstdc++ checks for that in debug mode now Change-Id: I879b1b5eb9b54ad19749e561c55333b0a084c699 diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 7b1cd74..567f256 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -635,6 +635,10 @@ void PDFIProcessor::endIndicator() static bool lr_tb_sort( Element* pLeft, Element* pRight ) { + // Ensure irreflexivity (which could be compromised if h or w is negative): + if (pLeft == pRight) + return false; + // first: top-bottom sorting // Note: allow for 10% overlap on text lines since text lines are usually _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits