COIN-OR::LEMON - Graph Library

Changeset 200:c7ae8642a8d8 in glemon-0.x


Ignore:
Timestamp:
05/02/07 22:33:58 (13 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3273
Message:

Bugfix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-event.cc

    r194 r200  
    942942      //we normalize that to one, to be able to give percentage
    943943      //value for the function
    944       double rel_pos=(pos-(phase/6))*6;
     944      double rel_pos=(pos-(phase/6.0))*6.0;
    945945
    946946      switch(phase)
     
    962962          break;
    963963        case 5:
    964           color.set_rgb_p ((rel_pos/3), 0, 1);
     964          color.set_rgb_p ((rel_pos/3.0), 0, 1);
    965965          break;
    966966        default:
Note: See TracChangeset for help on using the changeset viewer.