From 763f10855f60a539ad73a861a4b5a5612f9bd730 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 2 May 2009 02:54:36 +0200 Subject: Improve error message for missing vertex to color mapping for shadings. --- mupdf/pdf_shade4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mupdf/pdf_shade4.c b/mupdf/pdf_shade4.c index 5114c553..1bed7355 100644 --- a/mupdf/pdf_shade4.c +++ b/mupdf/pdf_shade4.c @@ -71,7 +71,7 @@ pdf_loadtype4shade(fz_shade *shade, pdf_xref *xref, fz_obj *shading, fz_obj *ref } } else { - error = fz_throw("syntaxerror: No Decode key in Type 4 Shade"); + error = fz_throw("shading is missing vertex color decoding"); goto cleanup; } @@ -253,7 +253,7 @@ pdf_loadtype5shade(fz_shade *shade, pdf_xref *xref, fz_obj *shading, fz_obj *ref } } else { - error = fz_throw("syntaxerror: No Decode key in Type 4 Shade"); + error = fz_throw("shading is missing vertex color decoding"); goto cleanup; } @@ -619,7 +619,7 @@ pdf_loadtype6shade(fz_shade *shade, pdf_xref *xref, fz_obj *shading, fz_obj *ref } } else { - error = fz_throw("syntaxerror: No Decode key in Type 6 Shade"); + error = fz_throw("shading is missing vertex color decoding"); goto cleanup; } @@ -739,7 +739,7 @@ pdf_loadtype7shade(fz_shade *shade, pdf_xref *xref, fz_obj *shading, fz_obj *ref } } else { - error = fz_throw("syntaxerror: No Decode key in Type 6 Shade"); + error = fz_throw("shading is missing vertex color decoding"); goto cleanup; } -- cgit v1.2.3