mapstorage.cc
branchgui
changeset 77 ba023627ff1a
parent 67 052cfd7832b1
child 79 e6619f95c97e
     1.1 --- a/mapstorage.cc	Sat Aug 27 09:32:34 2005 +0000
     1.2 +++ b/mapstorage.cc	Fri Sep 16 09:01:20 2005 +0000
     1.3 @@ -2,6 +2,8 @@
     1.4  #include <gtkmm.h>
     1.5  #include <cmath>
     1.6  
     1.7 +#include <cmath>
     1.8 +
     1.9  MapStorage::MapStorage() : modified(false), file_name("")
    1.10  {
    1.11    nodemap_storage["coordinates_x"] = new Graph::NodeMap<double>(graph);
    1.12 @@ -208,8 +210,8 @@
    1.13      int i = 0;
    1.14      for (NodeIt n(graph); n != INVALID; ++n)
    1.15      {
    1.16 -      nodemap_storage["coordinates_x"]->set(n, 250.0 * cos(i * step));
    1.17 -      nodemap_storage["coordinates_y"]->set(n, 250.0 * sin(i * step));
    1.18 +      nodemap_storage["coordinates_x"]->set(n, 250.0 * std::cos(i * step));
    1.19 +      nodemap_storage["coordinates_y"]->set(n, 250.0 * std::sin(i * step));
    1.20        i++;
    1.21      }
    1.22    }