X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fsvgtiny.c;h=e80404a58da00ebd0182e25090836e5bfcd10537;hb=54b2bc03cdbcd24399d220a47065ea553d6dd082;hp=3ad6eecb192eaa90b84e0c94b4adff9815383064;hpb=0312d7177af048a89e0259f78bceda9123b517fc;p=libsvgtiny.git diff --git a/src/svgtiny.c b/src/svgtiny.c index 3ad6eec..e80404a 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -950,7 +950,7 @@ svgtiny_code svgtiny_preparse_styles(dom_element *svg, } /** - * Parse a or element node. + * Parse , , and element nodes. */ svgtiny_code svgtiny_parse_svg(dom_element *svg, @@ -2447,6 +2447,8 @@ struct svgtiny_shape *svgtiny_add_shape(struct svgtiny_parse_state *state) shape->text = 0; shape->fill = state->fill; shape->stroke = state->stroke; + shape->fill_opacity = state->fill_opacity; + shape->stroke_opacity = state->stroke_opacity; shape->stroke_width = lroundf((float) state->stroke_width * (state->ctm.a + state->ctm.d) / 2.0); if (0 < state->stroke_width && shape->stroke_width == 0)