string info = format("%d %s", otype.get_article_number(), otype.get_description());
if(Track *track = dynamic_cast<Track *>(obj))
{
- const TrackType &ttype = track->get_type();
- if(mode!=CATALOGUE && abs(track->get_slope())>1e-4)
- info += format(" (slope %.1f%%)", abs(track->get_slope()/ttype.get_total_length()*100));
+ if(mode!=CATALOGUE && abs(track->get_tilt()).radians()>1e-4)
+ info += format(" (slope %.1f%%)", abs(tan(track->get_tilt())*100));
if(track->get_turnout_id())
info += format(" (turnout %d)", track->get_turnout_id());
else if(track->get_sensor_id())