Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/gnuplot/files: gnuplot-4.2.5-colorbox_accounting.patch
Date: Sat, 20 Jun 2009 16:39:27
Message-Id: E1MI3bB-0000m1-8D@stork.gentoo.org
1 ulm 09/06/20 16:39:25
2
3 Added: gnuplot-4.2.5-colorbox_accounting.patch
4 Log:
5 Fix "cb axis range undefined or overflow" error after fit, bug 274693.
6 (Portage version: 2.2_rc33/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 sci-visualization/gnuplot/files/gnuplot-4.2.5-colorbox_accounting.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/files/gnuplot-4.2.5-colorbox_accounting.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gnuplot/files/gnuplot-4.2.5-colorbox_accounting.patch?rev=1.1&content-type=text/plain
13
14 Index: gnuplot-4.2.5-colorbox_accounting.patch
15 ===================================================================
16 http://bugs.gentoo.org/274693
17 Solves: "cb axis range undefined or overflow" error after fit
18 Fix from upstream: https://sourceforge.net/tracker/?func=detail&atid=102055&aid=2808641&group_id=2055
19
20 --- gnuplot42/src/pm3d.c 2009-03-24 09:04:10.000000000 -0700
21 +++ test42/src/pm3d.c 2009-06-18 16:45:36.000000000 -0700
22 @@ -65,7 +65,6 @@ static quadrangle* quadrangles = (quadra
23
24 /* Internal prototypes for this module */
25 static TBOOLEAN plot_has_palette;
26 -static TBOOLEAN plot_wants_colorbox;
27 static double geomean4 __PROTO((double, double, double, double));
28 static double median4 __PROTO((double, double, double, double));
29 static void pm3d_plot __PROTO((struct surface_points *, int));
30 @@ -1020,10 +1019,8 @@ set_plot_with_palette(int plot_num, int
31 struct curve_points *this_2dplot = first_plot;
32 int surface = 0;
33 struct text_label *this_label = first_label;
34 - TBOOLEAN want_palette_but_not_colorbox = FALSE;
35
36 plot_has_palette = TRUE;
37 - plot_wants_colorbox = TRUE;
38 /* Is pm3d switched on globally? */
39 if (pm3d.implicit == PM3D_IMPLICIT)
40 return;
41 @@ -1035,18 +1032,12 @@ set_plot_with_palette(int plot_num, int
42 if (this_2dplot->plot_style == IMAGE)
43 return;
44 #endif
45 - if (this_2dplot->lp_properties.use_palette) {
46 - if (this_2dplot->lp_properties.pm3d_color.type <= TC_RGB)
47 - want_palette_but_not_colorbox = TRUE;
48 - /* don't return yet -- decide later whether showing color box is desirable */
49 - else
50 - return;
51 - }
52 -#ifdef EAM_DATASTRINGS
53 - if (this_2dplot->labels &&
54 - this_2dplot->labels->textcolor.type >= TC_CB)
55 + if (this_2dplot->lp_properties.use_palette
56 + && this_2dplot->lp_properties.pm3d_color.type > TC_RGB)
57 + return;
58 + if (this_2dplot->labels
59 + && this_2dplot->labels->textcolor.type >= TC_CB)
60 return;
61 -#endif
62 this_2dplot = this_2dplot->next;
63 }
64 }
65 @@ -1064,8 +1055,8 @@ set_plot_with_palette(int plot_num, int
66 if (this_3dplot->lp_properties.use_palette) {
67 int type = this_3dplot->lp_properties.pm3d_color.type;
68 if (type == TC_LT || type == TC_LINESTYLE || type == TC_RGB)
69 - want_palette_but_not_colorbox = TRUE;
70 - /* don't return yet -- decide later whether showing color box is desirable */
71 + /* don't return yet */
72 + ;
73 else
74 /* TC_DEFAULT: splot x with line|lp|dot palette */
75 return;
76 @@ -1097,9 +1088,7 @@ set_plot_with_palette(int plot_num, int
77 #undef TC_USES_PALETTE
78
79 /* Palette with continuous colors is not used. */
80 - if (want_palette_but_not_colorbox == FALSE)
81 - plot_has_palette = FALSE; /* otherwise it stays TRUE */
82 - plot_wants_colorbox = FALSE;
83 + plot_has_palette = FALSE; /* otherwise it stays TRUE */
84 }
85
86 TBOOLEAN
87 @@ -1111,6 +1100,6 @@ is_plot_with_palette()
88 TBOOLEAN
89 is_plot_with_colorbox()
90 {
91 - return plot_wants_colorbox;
92 + return plot_has_palette && (color_box.where != SMCOLOR_BOX_NO);
93 }