[poppler] poppler/TextOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Dec 11 09:56:59 PST 2012


 poppler/TextOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5d50b2765428e5a417967be2f41452ab05917db7
Author: Peter Breitenlohner <peb at mppmu.mpg.de>
Date:   Tue Dec 11 18:54:30 2012 +0100

    Correct bad semantics
    
    Negation has higher precedence than comparison
    Confirmed by Marek Kasik that wrote the code originally

diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index b8549ff..97253b4 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -3371,7 +3371,7 @@ void TextPage::coalesce(GBool physLayout, double fixedPitch, GBool doHTML) {
    *  so that they extend in x without hitting neighbours
    */
   for (blk1 = blkList; blk1; blk1 = blk1->next) {
-    if (!blk1->tableId >= 0) {
+    if (!(blk1->tableId >= 0)) {
       double xMax = DBL_MAX;
       double xMin = DBL_MIN;
 


More information about the poppler mailing list