From: <and...@us...> - 2007-08-02 12:21:19
|
Revision: 7774 http://plplot.svn.sourceforge.net/plplot/?rev=7774&view=rev Author: andrewross Date: 2007-08-02 05:21:22 -0700 (Thu, 02 Aug 2007) Log Message: ----------- Fix clipping in psttf driver so it works correctly with viewports. Modified Paths: -------------- trunk/drivers/psttf.cc Modified: trunk/drivers/psttf.cc =================================================================== --- trunk/drivers/psttf.cc 2007-08-02 11:33:07 UTC (rev 7773) +++ trunk/drivers/psttf.cc 2007-08-02 12:21:22 UTC (rev 7774) @@ -951,9 +951,9 @@ &clipx[2], &clipy[2]); plRotPhy(ORIENTATION, dev->xmin, dev->ymin, dev->xmax, dev->ymax, &clipx[3], &clipy[3]); -// doc->osBody() << " gsave " << clipx[0] << " " << clipy[0] << " " << -// clipx[1] << " " << clipy[1] << " " << clipx[2] << " " << -// clipy[2] << " " << clipx[3] << " " << clipy[3] << " CL\n"; + doc->osBody() << " gsave " << clipx[0] << " " << clipy[0] << " " << + clipx[1] << " " << clipy[1] << " " << clipx[2] << " " << + clipy[2] << " " << clipx[3] << " " << clipy[3] << " CL\n"; /* move to string reference point */ doc->osBody() << " " << args->x << " " << args->y << " M\n"; @@ -1144,6 +1144,7 @@ doc->osBody() << "grestore\n"; doc->osBody() << "grestore\n"; + doc->osBody() << "grestore\n"; /* * Estimate text bounding box from LASi get_dimensions function. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |