blockview updatet
git-svn-id: svn://db.shs.com.ru/libs@10 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -810,6 +810,7 @@ QList<BlockBusItem * > BlockView::connectionBuses(BlockItem * b0, BlockItem * b1
|
|||||||
|
|
||||||
bool BlockView::connectPins(BlockItemPin * p0, BlockItemPin * p1) {
|
bool BlockView::connectPins(BlockItemPin * p0, BlockItemPin * p1) {
|
||||||
if (!p0 || !p1) return false;
|
if (!p0 || !p1) return false;
|
||||||
|
if (p0 == p1) return false;
|
||||||
if (p0->busType() != p1->busType()) return false;
|
if (p0->busType() != p1->busType()) return false;
|
||||||
QList<BlockBusItem * > bl0 = p0->connectedBuses(), bl1 = p1->connectedBuses();
|
QList<BlockBusItem * > bl0 = p0->connectedBuses(), bl1 = p1->connectedBuses();
|
||||||
if (!(bl0.toSet() & bl1.toSet()).isEmpty()) return true;
|
if (!(bl0.toSet() & bl1.toSet()).isEmpty()) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user