BlockView selection rect fix (inside bus bounding rect)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user