ostringstream ss;
ss.precision(2);
ss<<ttype.get_article_number()<<' '<<ttype.get_description();
- if(mode!=CATALOGUE)
- ss<<" (slope "<<track.get_slope()/ttype.get_total_length()*100<<"%)";
+ if(mode!=CATALOGUE && abs(track.get_slope())>1e-4)
+ ss<<" (slope "<<abs(track.get_slope()/ttype.get_total_length()*100)<<"%)";
if(track.get_turnout_id())
ss<<" (turnout "<<track.get_turnout_id()<<')';
else if(track.get_sensor_id())