|
From: Shigeharu T. <sh...@ie...> - 2004-12-03 12:44:17
|
shige 12/03 2004 ---------------- I compiled current CVS version of gnuplot on OS: Solaris 2.6 Compiler: gcc-2.95.3 But the compile of term/fig.trm (rev. 1.47) is failed. The following patch fixes it. ----- From here ----- --- term/fig.trm.ORG Fri Dec 3 19:53:18 2004 +++ term/fig.trm Fri Dec 3 20:47:57 2004 @@ -1107,11 +1107,12 @@ TERM_PUBLIC void FIG_set_color(t_colorspec *colorspec) { double gray = colorspec->value; + int new_color; if (colorspec->type != TC_FRAC) return; - int new_color = (gray <= 0) ? 0 : (int)(gray * sm_palette.colors); + new_color = (gray <= 0) ? 0 : (int)(gray * sm_palette.colors); if (new_color >= FIG_palette_size) new_color = FIG_palette_size - 1; if (FIG_palette_set == FALSE) { ----- To here ----- +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |