X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fsvgexporter.cpp;h=890112f84c5d57431ddd81f36e357b1feb46288a;hb=d405b9943c888e3945c7ea4e496f9d300b114fe0;hp=bb8cf4e88eb737e31a4f851f0097a5d17f73b66e;hpb=d6816c177ee8d5f5191e833dce8e3c4e7e0222bf;p=r2c2.git diff --git a/source/designer/svgexporter.cpp b/source/designer/svgexporter.cpp index bb8cf4e..890112f 100644 --- a/source/designer/svgexporter.cpp +++ b/source/designer/svgexporter.cpp @@ -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");