summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
index 7b1cd7413de8..567f25654944 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