mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
fix nullpointer exception
This commit is contained in:
parent
587ada643f
commit
89452f0b3c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user