From: <ai...@us...> - 2011-01-29 22:30:44
|
Revision: 11533 http://plplot.svn.sourceforge.net/plplot/?rev=11533&view=rev Author: airwin Date: 2011-01-29 22:30:37 +0000 (Sat, 29 Jan 2011) Log Message: ----------- Fix off by two error in plcolorbar which was causing valgrind complaints for example 33. Modified Paths: -------------- trunk/src/pllegend.c Modified: trunk/src/pllegend.c =================================================================== --- trunk/src/pllegend.c 2011-01-29 21:11:48 UTC (rev 11532) +++ trunk/src/pllegend.c 2011-01-29 22:30:37 UTC (rev 11533) @@ -1138,7 +1138,7 @@ } else if ( i == n_steps - 1 ) { - values_ext[i] = max_value + ( max_value - values[i - 1] ) * 0.1; + values_ext[i] = max_value + ( max_value - values[n_colors - 2] ) * 0.1; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |