Bugfix.
1.1 --- a/graph_displayer_canvas-event.cc Thu Mar 29 12:17:36 2007 +0000
1.2 +++ b/graph_displayer_canvas-event.cc Wed May 02 20:33:58 2007 +0000
1.3 @@ -941,7 +941,7 @@
1.4 //that phase
1.5 //we normalize that to one, to be able to give percentage
1.6 //value for the function
1.7 - double rel_pos=(pos-(phase/6))*6;
1.8 + double rel_pos=(pos-(phase/6.0))*6.0;
1.9
1.10 switch(phase)
1.11 {
1.12 @@ -961,7 +961,7 @@
1.13 color.set_rgb_p (0, 1-rel_pos, 1);
1.14 break;
1.15 case 5:
1.16 - color.set_rgb_p ((rel_pos/3), 0, 1);
1.17 + color.set_rgb_p ((rel_pos/3.0), 0, 1);
1.18 break;
1.19 default:
1.20 std::cout << "Wrong phase: " << phase << " " << pos << std::endl;