From daff628cd6a54c163743e91637b697bec269f1b8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 23 Feb 2015 17:03:43 +0100 Subject: Clean up some type casts. --- source/xps/xps-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/xps') diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c index 41823d56..ec12e87a 100644 --- a/source/xps/xps-doc.c +++ b/source/xps/xps-doc.c @@ -453,7 +453,7 @@ xps_load_fixed_page(fz_context *ctx, xps_document *doc, xps_fixpage *page) root = node; } - if (strcmp(fz_xml_tag(root), "FixedPage")) + if (!fz_xml_is_tag(root, "FixedPage")) { fz_drop_xml(ctx, root); fz_throw(ctx, FZ_ERROR_GENERIC, "expected FixedPage element"); -- cgit v1.2.3