diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-12-09 11:14:36 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-12-09 11:14:36 +0100 |
commit | 6c1637c8df7708a7d195b37b298e593b9496edea (patch) | |
tree | d8d32c6d2f6a6cee05c0d6bce1e726a397c6afb1 /base/matrix.c | |
parent | 550970cd3c57ca2a455c9954c8871226031d6d76 (diff) | |
download | mupdf-6c1637c8df7708a7d195b37b298e593b9496edea.tar.xz |
ugly shade4
Diffstat (limited to 'base/matrix.c')
-rw-r--r-- | base/matrix.c | 6 |
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; |