mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 16:50:53 +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) :
|
Terminal::Terminal(TerminalData* data, Element* e) :
|
||||||
QGraphicsObject(e),
|
QGraphicsObject(e),
|
||||||
d(data)
|
d(data),
|
||||||
|
parent_element_(e)
|
||||||
{
|
{
|
||||||
// TODO: what is when multiple parents exist. So the other relation is lost.
|
// TODO: what is when multiple parents exist. So the other relation is lost.
|
||||||
d->setParent(this);
|
d->setParent(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user