[comp.sources.bugs] gnuplot 2.0

ruffwork@mist.cs.orst.edu (Ritchey Ruff) (04/11/90)

below are the changes I made to correct the latex floating point
exception problem.  the array LATEX_lines[] was being accessed
with -1 and -2 indices.  I've sent this to pixar!info-gnuplot@sun.com
also.

--ritchey ruff			ruffwork@cs.orst.edu

        Congress is not the sole suppository of wisdom.
			--- Rep. Bill Schuette (R-MI)

157,158c157,159
<     if (linetype >= 0 && 
< 	   LATEX_lines[linetype].size != LATEX_lines[LATEX_type].size) 
---
>     if (linetype >= 0 && LATEX_type >= 0 ) {
>       LATEX_dotsize = LATEX_lines[linetype].size / LATEX_UNIT; 
>       if (LATEX_lines[linetype].size != LATEX_lines[LATEX_type].size) {
163,164c164,166
< 		    LATEX_lines[linetype].size);
< 
---
> 		    LATEX_lines[linetype].size); 
> 	 }
> 	}
166d167
<     LATEX_dotsize = LATEX_lines[linetype].size / LATEX_UNIT;