diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-13 10:40:21 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-13 10:40:21 +0000 |
commit | 1f766b618e418b5a4d4e146506b75c89b6c416fb (patch) | |
tree | 1644a78488a5a0c4fefd638e89f4156b3e1aeee2 /draw/draw_edge.c | |
parent | 0b0e2af392428b5dbc88d6fbd2f6b5181e85165f (diff) | |
download | mupdf-1f766b618e418b5a4d4e146506b75c89b6c416fb.tar.xz |
Fix Bug 692915: fz_copy_aa_context was broken.
Code was copying the wrong structure. Thanks to Pedro Rivera
for pointing this out.
Diffstat (limited to 'draw/draw_edge.c')
-rw-r--r-- | draw/draw_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/draw_edge.c b/draw/draw_edge.c index fa192bb8..ad7a413c 100644 --- a/draw/draw_edge.c +++ b/draw/draw_edge.c @@ -43,8 +43,8 @@ void fz_new_aa_context(fz_context *ctx) void fz_copy_aa_context(fz_context *dst, fz_context *src) { - if (dst && src) - memcpy(dst, src, sizeof(*src)); + if (dst && dst->aa && src && src->aa) + memcpy(dst->aa, src->aa, sizeof(*src->aa)); } void fz_free_aa_context(fz_context *ctx) |