1.1 --- a/gui/mapstorage.cc Fri Sep 16 09:00:18 2005 +0000
1.2 +++ b/gui/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 }