]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/routebar.cpp
Add a vehicle property for swapping directions
[r2c2.git] / source / designer / routebar.cpp
index da9a5cf94537479079f3b48b3c782fa03aa0ce5f..77493647a529e2f302482677ac59755d8c2942b7 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -56,9 +56,9 @@ void Routebar::route_selected(unsigned index, const string &)
 {
        if(index==drp_routes->get_n_items()-1)
        {
-               Layout &layout = designer.get_layout();
-               const set<Route *> &routes = layout.get_routes();
-               Route *route = new Route(layout);
+               Layout &rlayout = designer.get_layout();
+               const set<Route *> &routes = rlayout.get_routes();
+               Route *route = new Route(rlayout);
                route->set_name(format("Route %d", routes.size()));
                designer.edit_route(route);