diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-11-22 23:02:15 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-11-22 23:02:15 +0000 |
commit | d807b62c51832252cd131fd019090f1b10a5f0b6 (patch) | |
tree | a9ac597d077fd545df0ffc0b48207dc02f7afdcc /Build/source/texk/web2c | |
parent | 1a2e7be1784cdd093a722b0f80ee7e09b18f5e14 (diff) |
mplibdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@42558 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/pngout.w | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/mplibdir/pngout.w b/Build/source/texk/web2c/mplibdir/pngout.w index 7a4a0b44006..2593a372f33 100644 --- a/Build/source/texk/web2c/mplibdir/pngout.w +++ b/Build/source/texk/web2c/mplibdir/pngout.w @@ -546,13 +546,17 @@ void mp_png_stroke_out (MP mp, mp_graphic_object *h, } } cairo_set_miter_limit(mp->png->cr,gr_miterlim_val((mp_stroked_object *)h)); + mp_png_path_out(mp, gr_path_p((mp_stroked_object *)h)); if (transformed) { + cairo_save(mp->png->cr); cairo_matrix_t matrix = {0,0,0,0,0,0}; cairo_matrix_init(&matrix, pen->sx, pen->rx, pen->ry, pen->sy, pen->tx, pen->ty); cairo_transform (mp->png->cr, &matrix); - } - mp_png_path_out(mp, gr_path_p((mp_stroked_object *)h)); - cairo_stroke (mp->png->cr); + cairo_stroke (mp->png->cr); + cairo_restore(mp->png->cr); + } else { + cairo_stroke (mp->png->cr); + } cairo_restore(mp->png->cr); } |