Changeset 1581:9bb83c7f479b in lemon0.x for gui/graph_displayer_canvasnode.cc
 Timestamp:
 07/22/05 13:04:27 (16 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2083
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

gui/graph_displayer_canvasnode.cc
r1579 r1581 136 136 //that is the deleter map 137 137 138 Graph::NodeMap<double> * actual_map ;138 Graph::NodeMap<double> * actual_map=NULL; 139 139 if(mapname!="Default") 140 140 { … … 166 166 if(j!=length) 167 167 { 168 int digit=(int)round(number/maxpos); 168 // std::cout << (number) << "" << (int)number << "=" << (number)(int)number << std::endl; 169 if((number(int)number)>ALMOST_ONE) 170 { 171 // std::cout<<"rounding: " <<number<<std::endl; 172 number=round(number); 173 } 174 int digit=(int)(number/maxpos); 175 // std::cout << number << "/" << maxpos << "=" << digit << std::endl; 169 176 str[j]=(digit+'0'); 170 177 number=digit*maxpos; … … 203 210 if(j!=length) 204 211 { 212 if((number(int)number)>ALMOST_ONE) 213 { 214 number=round(number); 215 } 205 216 int digit=(int)(number/maxpos); 206 217 str[j]=(digit+'0');
Note: See TracChangeset
for help on using the changeset viewer.