summaryrefslogtreecommitdiff
path: root/source/svg
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-09-19 17:17:12 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-09-19 17:19:41 +0200
commit2b16dbd8f73269cb15ca61ece75cf8d2d196ed28 (patch)
treec2077935809f028eccb5267c707c460310db4cf9 /source/svg
parent0f0fbc07d9be31f5e83ec5328d7311fdfd8328b1 (diff)
downloadmupdf-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/svg')
-rw-r--r--source/svg/svg-run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/svg/svg-run.c b/source/svg/svg-run.c
index f974c675..5302c640 100644
--- a/source/svg/svg-run.c
+++ b/source/svg/svg-run.c
@@ -1044,7 +1044,7 @@ svg_run_use(fz_context *ctx, fz_device *dev, svg_document *doc, fz_xml *root, co
fz_xml *linked = fz_tree_lookup(ctx, doc->idmap, xlink_href_att + 1);
if (linked)
{
- if (!strcmp(fz_xml_tag(linked), "symbol"))
+ if (fz_xml_is_tag(linked, "symbol"))
svg_run_use_symbol(ctx, dev, doc, root, linked, &local_state);
else
svg_run_element(ctx, dev, doc, linked, &local_state);