fix nullpointer exception

This commit is contained in:
Martin Marmsoler
2020-05-26 16:12:44 +02:00
committed by Laurent Trinques
parent ec52032532
commit e8d4b6c9d5

View File

@@ -155,7 +155,8 @@ Terminal::Terminal(QPointF pf, Qet::Orientation o, QString num, QString name, bo
Terminal::Terminal(TerminalData* data, Element* e) :
QGraphicsObject(e),
d(data)
d(data),
parent_element_(e)
{
// TODO: what is when multiple parents exist. So the other relation is lost.
d->setParent(this);