summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2012-09-11 19:24:58 +0200
committerAlbert Astals Cid <aacid@kde.org>2012-09-11 19:26:28 +0200
commit3ce4d213480471dfd8e307c24c99bf3c6308cd6f (patch)
treee8097399ddbfa116e8391e74e0f08d233ec66abb
parent4d7a64a23fd4b4b5ee0d47ead8677f374aaaf6c9 (diff)
Do not use isnan as it is C99
-rw-r--r--poppler/TextOutputDev.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 0795bb35..a9c9d706 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -20,7 +20,7 @@
// Copyright (C) 2006 Jeff Muizelaar <jeff@infidigm.net>
// Copyright (C) 2007, 2008 Adrian Johnson <ajohnson@redneon.com>
// Copyright (C) 2008 Koji Otani <sho@bbr.jp>
-// Copyright (C) 2008, 2010, 2011 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2008, 2010-2012 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2008 Pino Toscano <pino@kde.org>
// Copyright (C) 2008, 2010 Hib Eris <hib@hiberis.nl>
// Copyright (C) 2009 Ross Moore <ross@maths.mq.edu.au>
@@ -2301,8 +2301,8 @@ void TextPage::addChar(GfxState *state, double x, double y,
if (x1 + w1 < 0 || x1 > pageWidth ||
y1 + h1 < 0 || y1 > pageHeight ||
w1 > pageWidth || h1 > pageHeight ||
- isnan(x1) || isnan(y1) ||
- isnan(w1) || isnan(h1)) {
+ x1 != x1 || y1 != y1 || // IEEE way of checking for isnan
+ w1 != w1 || h1 != h1) {
charPos += nBytes;
return;
}