summaryrefslogtreecommitdiff
path: root/devices/vector/gdevpdfm.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-02-18 16:31:31 +0000
committerRobin Watts <robin.watts@artifex.com>2016-02-18 16:32:14 +0000
commit9bb42182c7637e11bc2939fb359ab79365594202 (patch)
tree4483cde486308c2807722e84a8f3bfccf26456fc /devices/vector/gdevpdfm.c
parentc00965e4c05f08ec000303d53942e846187eed1a (diff)
downloadghostpdl-9bb42182c7637e11bc2939fb359ab79365594202.tar.gz
Update devices to return errors using return_error.
Diffstat (limited to 'devices/vector/gdevpdfm.c')
-rw-r--r--devices/vector/gdevpdfm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/devices/vector/gdevpdfm.c b/devices/vector/gdevpdfm.c
index b92a28bd1..d3effc58c 100644
--- a/devices/vector/gdevpdfm.c
+++ b/devices/vector/gdevpdfm.c
@@ -967,7 +967,7 @@ pdfmark_annot(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
case 2:
emprintf(pdev->memory,
"Annotation set to non-printing,\n not permitted in PDF/A, aborting conversion\n");
- return gs_error_invalidfont;
+ return_error(gs_error_invalidfont);
break;
default:
emprintf(pdev->memory,
@@ -1111,7 +1111,7 @@ pdfmark_annot(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
case 2:
emprintf(pdev->memory,
"Annotation (not TrapNet or PrinterMark) on page,\n not permitted in PDF/X, aborting conversion\n");
- return gs_error_invalidfont;
+ return_error(gs_error_invalidfont);
break;
default:
emprintf(pdev->memory,
@@ -1145,7 +1145,7 @@ pdfmark_annot(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
case 2:
emprintf(pdev->memory,
"Annotation (not TrapNet or PrinterMark) potentially on page (no /Rect in dict),\n not permitted in PDF/X, aborting conversion\n");
- return gs_error_invalidfont;
+ return_error(gs_error_invalidfont);
break;
default:
emprintf(pdev->memory,