diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2010-06-22 17:11:52 +0000 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2010-06-22 17:11:52 +0000 |
commit | 5560ad0b3bef39e52851f9c0fcd5b8cf1bdc06fc (patch) | |
tree | 4f0446cbacd0bf6bc07775d7c23db7a996f13a15 /xps/xpsvisual.c | |
parent | 94b467a15d17b5f4bf5c9caad18f19694ff5d1c5 (diff) |
Add error propagation where it is missing, and remove error returns where they are not used.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11417 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsvisual.c')
-rw-r--r-- | xps/xpsvisual.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xps/xpsvisual.c b/xps/xpsvisual.c index 9c2744db2..9586a6e89 100644 --- a/xps/xpsvisual.c +++ b/xps/xpsvisual.c @@ -34,6 +34,7 @@ int xps_parse_visual_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dict, xps_item_t *root) { xps_item_t *node; + int code; char *visual_uri; char *visual_att; @@ -52,7 +53,9 @@ xps_parse_visual_brush(xps_context_t *ctx, char *base_uri, xps_resource_t *dict, if (visual_tag) { - xps_parse_tiling_brush(ctx, visual_uri, dict, root, xps_paint_visual_brush, visual_tag); + code = xps_parse_tiling_brush(ctx, visual_uri, dict, root, xps_paint_visual_brush, visual_tag); + if (code) + return gs_rethrow(code, "cannot parse tiling brush"); } return 0; |