From: <ai...@us...> - 2010-05-01 16:16:31
|
Revision: 10959 http://plplot.svn.sourceforge.net/plplot/?rev=10959&view=rev Author: airwin Date: 2010-05-01 16:16:24 +0000 (Sat, 01 May 2010) Log Message: ----------- Reinstate pltr_data tests for NULL that were removed by revision 10895. It turns out those tests are essential for the python and tcl bindings to work properly. Revision Links: -------------- http://plplot.svn.sourceforge.net/plplot/?rev=10895&view=rev Modified Paths: -------------- trunk/src/plshade.c Modified: trunk/src/plshade.c =================================================================== --- trunk/src/plshade.c 2010-05-01 15:58:15 UTC (rev 10958) +++ trunk/src/plshade.c 2010-05-01 16:16:24 UTC (rev 10959) @@ -514,7 +514,7 @@ return; } - if ( pltr == NULL && plsc->coordinate_transform == NULL ) + if ( (pltr == NULL && plsc->coordinate_transform == NULL) || pltr_data == NULL ) rectangular = 1; int_val = shade_max - shade_min; @@ -609,7 +609,7 @@ y[0] = y[3] = iy; y[1] = y[2] = iy + j; - if ( pltr ) + if ( pltr && pltr_data ) { for ( i = 0; i < 4; i++ ) { @@ -668,7 +668,7 @@ } n += i; - if ( pltr ) + if ( pltr && pltr_data ) { for ( i = 0; i < n; i++ ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |