=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/term/Attic/gpic.trm,v retrieving revision 1.1.1.2 retrieving revision 1.1.1.3 diff -u -p -r1.1.1.2 -r1.1.1.3 --- OpenXM_contrib/gnuplot/term/Attic/gpic.trm 2000/01/22 14:16:23 1.1.1.2 +++ OpenXM_contrib/gnuplot/term/Attic/gpic.trm 2003/09/15 07:09:36 1.1.1.3 @@ -1,5 +1,5 @@ /* - * $Id: gpic.trm,v 1.1.1.2 2000/01/22 14:16:23 maekawa Exp $ + * $Id: gpic.trm,v 1.1.1.3 2003/09/15 07:09:36 ohara Exp $ */ /* GNUPLOT - gpic.trm -*-C-*- */ @@ -164,11 +164,11 @@ TERM_PUBLIC void GPIC_text() } TERM_PUBLIC void GPIC_linetype(linetype) -int linetype; + int linetype; { - if (linetype >= GPIC_NUMLINES - 2) + if (linetype > 0) linetype %= (GPIC_NUMLINES - 2); - GPIC_ltype = linetype; + GPIC_ltype = linetype + 2; } void GPIC_close_line() @@ -189,11 +189,11 @@ unsigned int x, y; TERM_PUBLIC void GPIC_vector(ux, uy) -unsigned int ux, uy; + unsigned int ux, uy; { if (GPIC_linecount == 1) { fprintf(gpoutfile, "line %s to (x+%f,y+%f)", - GPIC_lines[GPIC_ltype + 2], + GPIC_lines[GPIC_ltype], GPIC_coord(ux), GPIC_coord(uy)); } else { fprintf(gpoutfile, "\