summaryrefslogtreecommitdiff
path: root/base/matrix.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-12-09 11:14:36 +0100
committerTor Andersson <tor@ghostscript.com>2004-12-09 11:14:36 +0100
commit6c1637c8df7708a7d195b37b298e593b9496edea (patch)
treed8d32c6d2f6a6cee05c0d6bce1e726a397c6afb1 /base/matrix.c
parent550970cd3c57ca2a455c9954c8871226031d6d76 (diff)
downloadmupdf-6c1637c8df7708a7d195b37b298e593b9496edea.tar.xz
ugly shade4
Diffstat (limited to 'base/matrix.c')
-rw-r--r--base/matrix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/matrix.c b/base/matrix.c
index 2b831bf4..b0513940 100644
--- a/base/matrix.c
+++ b/base/matrix.c
@@ -130,6 +130,12 @@ fz_rect
fz_transformaabb(fz_matrix m, fz_rect r)
{
fz_point s, t, u, v;
+
+ if (fz_isinfiniterect(r))
+ return r;
+ if (fz_isemptyrect(r))
+ return r;
+
s.x = r.min.x; s.y = r.min.y;
t.x = r.min.x; t.y = r.max.y;
u.x = r.max.x; u.y = r.max.y;