]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/routebar.cpp
Fix a problem with TrackIter::block_iter at end of line
[r2c2.git] / source / designer / routebar.cpp
index da9a5cf94537479079f3b48b3c782fa03aa0ce5f..66a55d77c838dbd29a8c2847c8eb48322aa9fb1d 100644 (file)
@@ -1,11 +1,4 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
 #include "libr2c2/route.h"
 #include "designer.h"
 #include "routebar.h"
@@ -56,9 +49,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);