diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-09-19 17:17:12 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-09-19 17:19:41 +0200 |
commit | 2b16dbd8f73269cb15ca61ece75cf8d2d196ed28 (patch) | |
tree | c2077935809f028eccb5267c707c460310db4cf9 /source/xps/xps-path.c | |
parent | 0f0fbc07d9be31f5e83ec5328d7311fdfd8328b1 (diff) | |
download | mupdf-2b16dbd8f73269cb15ca61ece75cf8d2d196ed28.tar.xz |
Fix 698558: Handle non-tags in tag name comparisons.
Use fz_xml_is_tag instead of fz_xml_tag && !strcmp idiom.
Diffstat (limited to 'source/xps/xps-path.c')
-rw-r--r-- | source/xps/xps-path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/xps/xps-path.c b/source/xps/xps-path.c index 6faeb0ca..021d2021 100644 --- a/source/xps/xps-path.c +++ b/source/xps/xps-path.c @@ -879,14 +879,14 @@ xps_parse_path(fz_context *ctx, xps_document *doc, const fz_matrix *ctm, char *b if (!data_att && !data_tag) return; - if (fill_tag && !strcmp(fz_xml_tag(fill_tag), "SolidColorBrush")) + if (fz_xml_is_tag(fill_tag, "SolidColorBrush")) { fill_opacity_att = fz_xml_att(fill_tag, "Opacity"); fill_att = fz_xml_att(fill_tag, "Color"); fill_tag = NULL; } - if (stroke_tag && !strcmp(fz_xml_tag(stroke_tag), "SolidColorBrush")) + if (fz_xml_is_tag(stroke_tag, "SolidColorBrush")) { stroke_opacity_att = fz_xml_att(stroke_tag, "Opacity"); stroke_att = fz_xml_att(stroke_tag, "Color"); |