fix #29, you can`t move selected blocks in place which causes bus segment deletion

This commit is contained in:
2023-05-30 18:24:37 +03:00
parent 5a4cd77dcb
commit f6205cab55
4 changed files with 61 additions and 19 deletions

View File

@@ -304,6 +304,14 @@ void BlockBusItem::simplify(bool full) {
}
bool BlockBusItem::hasNullSegment() const {
for (int s = 0; s < segments.size(); ++s) {
if (pol[segments[s].first] == pol[segments[s].second]) return true;
}
return false;
}
void BlockBusItem::adjustLine() {}