mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
fix nullpointer exception
This commit is contained in:
committed by
Laurent Trinques
parent
ec52032532
commit
e8d4b6c9d5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user