BlockView selection rect fix (inside bus bounding rect)

This commit is contained in:
2020-10-14 01:13:30 +03:00
parent f53d5bd53b
commit 3a41f3853c
2 changed files with 13 additions and 3 deletions

View File

@@ -586,7 +586,10 @@ void BlockBusItem::mousePressEvent(QGraphicsSceneMouseEvent * e) {
if (!scene()->views().isEmpty()) {
bv = qobject_cast<BlockView*>(scene()->views().back());
}
if (bv) bv->cur_bus = this;
if (bv) {
if (selPoint >= 0 || selSegment >= 0)
bv->cur_bus = this;
}
if (new_segment) {
QMetaObject::invokeMethod(scene()->views().back(), "newBranchCancel");
}