- float limit = (link && !flex && !other.get_flex()) ? 1e-6 : 1e-4;
- const vector<Endpoint> &eps = type.get_endpoints();
- const vector<Endpoint> &other_eps = other.get_type().get_endpoints();
+ if(!limit || link)
+ {
+ limit = layout.get_catalogue().get_gauge();
+ if(link && !flex && !other.get_flex())
+ limit /= 10;
+ }
+ limit *= limit;
+
+ const vector<TrackType::Endpoint> &eps = type.get_endpoints();
+ const vector<TrackType::Endpoint> &other_eps = other.get_type().get_endpoints();