git-svn-id: svn://db.shs.com.ru/libs@175 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-04-04 15:03:29 +00:00
parent b4e6995592
commit 81d21c2084
3 changed files with 9 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ void BlockItem::_resize(QSizeF s) {
BlockItemPin * BlockItem::addPin(BlockItemPin * pin, bool update_) {
pin->setParentItem(this);
pins_[pin->alignment()] << pin;
if (!pins_[pin->alignment()].contains(pin)) pins_[pin->alignment()] << pin;
pin->parent_ = this;
if (update_)
arrangePins();