]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/svgexporter.cpp
Move track appearance properties into a separate class
[r2c2.git] / source / designer / svgexporter.cpp
index bb8cf4e88eb737e31a4f851f0097a5d17f73b66e..890112f84c5d57431ddd81f36e357b1feb46288a 100644 (file)
@@ -19,10 +19,8 @@ void SvgExporter::save(const string &fn)
 {
        gauge = layout.get_catalogue().get_gauge()*1000;
 
-       const Profile &rail_profile = layout.get_catalogue().get_rail_profile();
-       const Vector &rail_min = rail_profile.get_min_coords();
-       const Vector &rail_max = rail_profile.get_max_coords();
-       rail_width = (rail_max.x-rail_min.x)*1000;
+       // XXX This should be retrieved from track appearance
+       rail_width = 2;
 
        xmlpp::Document *doc = new xmlpp::Document;
        xmlpp::Element *root = doc->create_root_node("svg", "http://www.w3.org/2000/svg");