summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-10-10 11:44:47 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-10-10 11:44:47 +0200
commit40c65518c160e501f890863827074d11aa72ee7f (patch)
treec228cf203dd50887e3150dabba2a822a67c6c730
parent077182e1fe53131d7c88cc1a0f278403e60bdc32 (diff)
[psgetpagebbox] return true if any of the coords are != 0 instead of all of them
Fixes bug #24132.
-rw-r--r--libspectre/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libspectre/ps.c b/libspectre/ps.c
index 7292b7e..ac0cf0e 100644
--- a/libspectre/ps.c
+++ b/libspectre/ps.c
@@ -2260,7 +2260,7 @@ psgetpagebbox (const struct document *doc, int page, int *urx, int *ury, int *ll
*urx = new_urx;
*ury = new_ury;
- return (new_llx != 0 && new_lly != 0 && new_urx != 0 && new_ury != 0);
+ return (new_llx != 0 || new_lly != 0 || new_urx != 0 || new_ury != 0);
}
/* From Evince */