mapstorage.cc
changeset 151 72f1c33f89d4
parent 135 84996003b01c
child 172 fc1e478697d3
     1.1 --- a/mapstorage.cc	Thu Sep 21 10:29:29 2006 +0000
     1.2 +++ b/mapstorage.cc	Mon Sep 25 07:54:00 2006 +0000
     1.3 @@ -319,7 +319,14 @@
     1.4      arrow_pos_read_ok = false;
     1.5      for (EdgeIt e(graph); e != INVALID; ++e)
     1.6      {
     1.7 -      arrow_pos.set(e, (coords[graph.source(e)] + coords[graph.target(e)]) / 2.0);
     1.8 +      if (graph.source(e) == graph.target(e))
     1.9 +      {
    1.10 +        arrow_pos.set(e, coords[graph.source(e)] + XY(0.0, 80.0));
    1.11 +      }
    1.12 +      else
    1.13 +      {
    1.14 +        arrow_pos.set(e, (coords[graph.source(e)] + coords[graph.target(e)]) / 2.0);
    1.15 +      }
    1.16      }
    1.17    }
    1.18  
    1.19 @@ -367,20 +374,6 @@
    1.20      }
    1.21    }
    1.22  
    1.23 -  // filter loop edges
    1.24 -  for (EdgeIt e(graph); e != INVALID; ++e)
    1.25 -  {
    1.26 -    if (graph.source(e) == graph.target(e))
    1.27 -    {
    1.28 -      std::cerr << "Removed loop edge " << (*edgemap_storage["label"])[e]
    1.29 -        << " (from " << (*nodemap_storage["label"])[graph.source(e)]
    1.30 -        << ", to " << (*nodemap_storage["label"])[graph.target(e)] << ")."
    1.31 -        << std::endl;
    1.32 -
    1.33 -      graph.erase(e);
    1.34 -    }
    1.35 -  }
    1.36 -
    1.37    return 0;
    1.38  }
    1.39