From 4c16f150cceac5ba7da12ca30b8ae94c31b5e2c6 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Thu, 22 Mar 2012 22:31:31 +1030 Subject: [PATCH 6/6] Don't reverse order of words with same xMin --- poppler/TextOutputDev.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index 63b7e50..e97fe55 100644 --- a/poppler/TextOutputDev.cc +++ b/poppler/TextOutputDev.cc @@ -700,7 +700,7 @@ void TextPool::addWord(TextWord *word) { w0 = NULL; w1 = pool[wordBaseIdx - minBaseIdx]; } - for (; w1 && word->primaryCmp(w1) > 0; w0 = w1, w1 = w1->next) ; + for (; w1 && word->primaryCmp(w1) >= 0; w0 = w1, w1 = w1->next) ; word->next = w1; if (w0) { w0->next = word; -- 1.7.5.4