commit dd38d2d06e9dfe1ccd9d7dc40f9a1e53e6efb341 Author: Hib Eris Date: Sun Dec 21 14:52:53 2008 +0100 Fix compile warning to suggest parentheses and/or diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index 14ffb37..ef0af20 100644 --- a/poppler/TextOutputDev.cc +++ b/poppler/TextOutputDev.cc @@ -3810,8 +3810,8 @@ void TextLine::visitSelection(TextSelectionVisitor *visitor, (selection->x2 < p->xMax && selection->y2 < p->yMax)) if (begin == NULL) begin = p; - if ((selection->x1 > p->xMin && selection->y1 > p->yMin || - selection->x2 > p->xMin && selection->y2 > p->yMin) && (begin != NULL)) { + if (((selection->x1 > p->xMin && selection->y1 > p->yMin) || + (selection->x2 > p->xMin && selection->y2 > p->yMin)) && (begin != NULL)) { end = p->next; current = p; } @@ -3895,8 +3895,9 @@ void TextBlock::visitSelection(TextSelectionVisitor *visitor, stop_y = selection->y1; } - if ((selection->x1 > p->xMin && selection->y1 > p->yMin || - selection->x2 > p->xMin && selection->y2 > p->yMin) && (begin != NULL)) + if (((selection->x1 > p->xMin && selection->y1 > p->yMin) || + (selection->x2 > p->xMin && selection->y2 > p->yMin)) + && (begin != NULL)) end = p->next; } @@ -3973,8 +3974,8 @@ void TextPage::visitSelection(TextSelectionVisitor *visitor, stop_y = selection->y1; } - if (selection->x1 > b->xMin && selection->y1 > b->yMin || - selection->x2 > b->xMin && selection->y2 > b->yMin) + if ((selection->x1 > b->xMin && selection->y1 > b->yMin) || + (selection->x2 > b->xMin && selection->y2 > b->yMin)) end = i + 1; }