mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 17:34:12 +02:00
Merge pull request #1256 from ispyisail/fix/route-review-followups
Fix the follow-ups from the review of wire routing (#1245)
This commit is contained in:
@@ -1266,8 +1266,13 @@ QString QetScriptApi::applyRoute(Conductor *conductor, const QString &caller)
|
||||
return QStringLiteral("no-route");
|
||||
}
|
||||
if (!conductor->setPathPoints(route.points)) {
|
||||
log(QStringLiteral("qet.%1: the route found does not join the two terminals; "
|
||||
"the conductor keeps its path").arg(caller));
|
||||
// ConductorRouter always gives at least the two terminals and an
|
||||
// exit point between them, so this is a route that is not a run
|
||||
// of horizontal and vertical segments from one terminal to the
|
||||
// other -- a bug in the router, not something the folio did.
|
||||
log(QStringLiteral("qet.%1: the route found was refused (it must run in "
|
||||
"horizontal and vertical segments from one terminal to "
|
||||
"the other); the conductor keeps its path").arg(caller));
|
||||
return QStringLiteral("no-route");
|
||||
}
|
||||
return QStringLiteral("routed");
|
||||
|
||||
Reference in New Issue
Block a user