X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fmeasure.cpp;h=ee08ba7943276793961ed5cfeba072c025a72752;hb=ae0600f7c3df5b6ef46992b1423888dd0e9a5026;hp=6f1d7bc8d5943bf73a00d4d94efe1bed7a8ef4bf;hpb=6c61179fe09af2f5366d50f10aadbf5f83438087;p=r2c2.git diff --git a/source/designer/measure.cpp b/source/designer/measure.cpp index 6f1d7bc..ee08ba7 100644 --- a/source/designer/measure.cpp +++ b/source/designer/measure.cpp @@ -1,9 +1,17 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #include #include #include "designer.h" #include "3d/layout.h" #include "measure.h" +using namespace std; using namespace Marklin; using namespace Msp; @@ -19,8 +27,8 @@ void Measure::start() void Measure::snap_to_tracks(Point &pt, float &dir) { - const TrackSeq <racks=designer.get_layout()->get_tracks(); - for(TrackSeq::const_iterator i=ltracks.begin(); i!=ltracks.end(); ++i) + const set <racks=designer.get_layout()->get_tracks(); + for(set::const_iterator i=ltracks.begin(); i!=ltracks.end(); ++i) if((*i)->snap(pt, dir)) return; }