summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2009-05-02 02:54:36 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2009-05-02 02:54:36 +0200
commit763f10855f60a539ad73a861a4b5a5612f9bd730 (patch)
treef12f356562555515a3d1e5e2a1c7048026561b90
parentc9b155cd64a5bfeb5ff817507d49d39077dc56f8 (diff)
downloadmupdf-763f10855f60a539ad73a861a4b5a5612f9bd730.tar.xz
Improve error message for missing vertex to color mapping for shadings.
-rw-r--r--mupdf/pdf_shade4.c8
1 files 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;
}