[gs-cvs] rev 7507 - trunk/gs/src
lpd at ghostscript.com
lpd at ghostscript.com
Thu Dec 14 11:40:33 PST 2006
Author: lpd
Date: 2006-12-14 11:40:32 -0800 (Thu, 14 Dec 2006)
New Revision: 7507
Modified:
trunk/gs/src/gstext.c
Log:
For Adobe compatibility, makes 'show'-type operators signal nocurrentpoint
immediately, rather than when rendering the first character, if there is no
current point. (PS3 CET 13-27-3, 13-28-4, 13-29-3, and possibly others)
Modified: trunk/gs/src/gstext.c
===================================================================
--- trunk/gs/src/gstext.c 2006-12-14 16:28:49 UTC (rev 7506)
+++ trunk/gs/src/gstext.c 2006-12-14 19:40:32 UTC (rev 7507)
@@ -228,6 +228,15 @@
gx_clip_path *pcpath = 0;
int code;
+ /*
+ * Detect nocurrentpoint now, even if the string is empty, for Adobe
+ * compatibility.
+ */
+ if (text->operation & (TEXT_DO_DRAW | TEXT_DO_ANY_CHARPATH)) {
+ if (!pgs->current_point_valid)
+ return_error(gs_error_nocurrentpoint);
+ }
+
if (text->operation & TEXT_DO_DRAW) {
code = gx_effective_clip_path(pgs, &pcpath);
gs_set_object_tag(pgs, GS_TEXT_TAG);
More information about the gs-cvs
mailing list