[comp.windows.news] bug in currentpoint

lou@bearcat.rutgers.edu (Lou Steinberg) (09/01/88)

I am running vanilla NeWS 1.1 on a Sun 3/50 (the standard Sun version
of NeWS 1.1, I assume).  There appears to be a bug in currentpoint.

Do  .01 .01 scale 0 34000 moveto
and you will find that currentpoint returns 0 -12240, even though
printing appears in the correct place. It looks as if currentpoint uses a 
16-bit integer variable somewhere where it should be using 32.

(This bug is tickled by postscript output from the SCRIBE document formatting
system.)

Anyone see this before, or have a patch for currentpoint?

A patch for the scribe is to redefine the XM function from the scribe
postscript prolog so that instead of doing currentpoint it does
  1.0 10.0 scale currentpoint 1.0 .1 scale 10 mul
i.e. temporarily change the y scale to make the y coordinate less than 32000,
call currentpoint, then fix the y coordinate to reflect the actual scale.
-- 
					Lou Steinberg

uucp:   {pretty much any major site}!rutgers!aramis.rutgers.edu!lou 
arpa:   lou@aramis.rutgers.edu