Fix bug where undoing+redoing AddWire multiple times crashes

This commit is contained in:
xypwn
2020-03-28 11:15:04 +01:00
parent de9e38ddf7
commit 9414c8c426
7 changed files with 28 additions and 7 deletions

View File

@@ -34,6 +34,16 @@ PartType::PartType Part::partType()
return m_partType;
}
QPointF Part::getPos() const
{
return pos();
}
void Part::setPos(QPointF pos)
{
QGraphicsItem::setPos(pos);
}
void Part::addInputs(int amount)
{
for(int i = 0; i < amount; i++)