]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/svgexporter.cpp
Add a generic snapping interface in Object
[r2c2.git] / source / designer / svgexporter.cpp
index a9ba131c6bedc88a70d43e9b157b55d3b393ce8d..62e869c368215ae7b1c590f02c7f227a0caed589 100644 (file)
@@ -1,12 +1,5 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include <cmath>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
 #include "libr2c2/catalogue.h"
 #include "libr2c2/track.h"
 #include "libr2c2/tracktype.h"
@@ -52,7 +45,7 @@ void SvgExporter::save(const string &fn)
                unsigned n_endpoints = (*i)->get_type().get_endpoints().size();
                for(unsigned j=0; j<n_endpoints; ++j)
                {
-                       Vector pos = (*i)->get_endpoint_position(j);
+                       Vector pos = (*i)->get_snap_node(j).position;
                        if(i==tracks.begin() && j==0)
                                minp = maxp = pos;
                        else