From: <hez...@us...> - 2011-01-01 00:34:04
|
Revision: 11411 http://plplot.svn.sourceforge.net/plplot/?rev=11411&view=rev Author: hezekiahcarty Date: 2011-01-01 00:33:58 +0000 (Sat, 01 Jan 2011) Log Message: ----------- A few small fixes for the PL_MAXPOLY changes xwin.c: npts -> pls->dev_npts plgradient.c: 10. -> 180. Modified Paths: -------------- trunk/drivers/xwin.c trunk/src/plgradient.c Modified: trunk/drivers/xwin.c =================================================================== --- trunk/drivers/xwin.c 2011-01-01 00:31:53 UTC (rev 11410) +++ trunk/drivers/xwin.c 2011-01-01 00:33:58 UTC (rev 11411) @@ -848,7 +848,7 @@ if ( pls->dev_npts > PL_MAXPOLY ) { - pts = (XPoint *) malloc( sizeof(XPoint) * npts ); + pts = (XPoint *) malloc( sizeof(XPoint) * pls->dev_npts ); } else { @@ -891,7 +891,7 @@ } #endif - if ( npts > PL_MAXPOLY ) + if ( pls->dev_npts > PL_MAXPOLY ) { free( pts ); } Modified: trunk/src/plgradient.c =================================================================== --- trunk/src/plgradient.c 2011-01-01 00:31:53 UTC (rev 11410) +++ trunk/src/plgradient.c 2011-01-01 00:33:58 UTC (rev 11411) @@ -86,7 +86,7 @@ // Find (x1, y1) and (x2, y2) corresponding to beginning and end // of gradient vector. - double cosangle = cos( PI * angle / 10. ); + double cosangle = cos( PI * angle / 180. ); double sinangle = sin( PI * angle / 180. ); xrot = x[0] * cosangle + y[0] * sinangle; xrot_min = xrot; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |