Kaydet (Commit) 72865662 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Ensure irreflexivity of std::stable_sort predicate

GCC 6 libstdc++ checks for that in debug mode now

Change-Id: I879b1b5eb9b54ad19749e561c55333b0a084c699
üst 21f98618
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment