mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-19 12:34:15 +02:00
Merge pull request #1530 from DaTweety/fix/continuity-cable-cores
Continuity check: conductors in different cables are no divergence
This commit is contained in:
@@ -5379,6 +5379,15 @@ QVariantList QetScriptApi::checkContinuity(int folioIndex)
|
||||
QHash<QString, QSet<QString>> distinct_values;
|
||||
for (Conductor *pc : std::as_const(potential)) {
|
||||
for (const QString &prop : checked_properties) {
|
||||
//A conductor held by a cable carries its core's label
|
||||
//(15W1:BN) in the cable field, written by CableManager:
|
||||
//one conductor, one core. Two conductors of a potential
|
||||
//running in two cables are the normal case, not a
|
||||
//divergence.
|
||||
if (prop == QLatin1String("cable")
|
||||
&& !pc->properties().m_cable_uuid.isNull()) {
|
||||
continue;
|
||||
}
|
||||
distinct_values[prop].insert(conductorPropertyValue(pc->properties(), prop));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user